billowy-army-68599
08/10/2021, 4:26 PMbillowy-pilot-50934
08/10/2021, 4:57 PMbillowy-pilot-50934
08/10/2021, 5:00 PMbrave-planet-10645
08/11/2021, 10:07 AMalert-mechanic-59024
08/11/2021, 6:12 PMfamous-train-38484
08/12/2021, 1:25 PMmany-yak-61188
08/13/2021, 1:43 PMwonderful-dress-5700
08/14/2021, 1:58 AMpulumi import azure:core/resourceGroup:ResourceGroup <resource-group-name> '/subscriptions/<subscriptionId>/resourceGroups/<resource-group-name>'
Error that I am receiving
azure:core/resourceGroup:ResourceGroup resource '<resource-group-name>' has a problem: Missing required argument: The argument "location" is required, but no definition was found.. Examine values at 'ResourceGroup.Location'
Overall I was wondering if there is an easier way to import all the resources in a resource group?dry-answer-66872
08/16/2021, 8:44 AMwonderful-dress-5700
08/16/2021, 10:09 AMvar bookingEngineApi = new Api("api", new ApiArgs
{
ResourceGroupName = resourceGroup.Name,
ServiceName = apiManagementService.Name,
ApiRevision = "1",
DisplayName = Settings.ApiManagementApiName,
Path = Settings.ApiManagementApiPathName,
Protocols = { Protocol.Http, Protocol.Https },
Format = "openapi+json-link",
Value = $"https://{Settings.AppServiceName}.<http://azurewebsites.net|azurewebsites.net>"
}, new CustomResourceOptions
{
DependsOn = apiAppService
});
acoustic-state-79068
08/16/2021, 11:43 AMaws:elasticloadbalancing:loadbalancer/LoadBalancer
(and other variations) without any success. Is there a logical scheme for building those strings?
Sample error message
pulumi import aws:elasticloadbalancing:loadbalancer/LoadBalancer xxxxxxxx xxxxxxxx
Previewing import (dev)
View Live: <https://app.pulumi.com/xxxxxx/cyanite-api/dev/previews/e94fxxxd-36c4-4xxb-932e-xxx564bef403>
Type Name Plan Info
+ pulumi:pulumi:Stack xxxxxxxx create 1 error
= └─ aws:elasticloadbalancing:loadbalancer/LoadBalancer xxxxxxxx import 1 error
Diagnostics:
pulumi:pulumi:Stack (xxxxxxxxxxxx):
error: preview failed
aws:elasticloadbalancing:loadbalancer/LoadBalancer (xxxxxxxxxxxxxx):
error: Preview failed: unrecognized resource type (Read): aws:elasticloadbalancing:loadbalancer/LoadBalancer
cool-belgium-78445
08/16/2021, 2:55 PMclass AccountProvider(ResourceProvider):
def __init__(self, props):
self.parent_client = Client(props["sid"], props["auth_token"])
def create(self, props):
subaccount = self.parent_client.api.accounts.create(friendly_name="{}-{}".format(props["name"], stack))
return CreateResult(id_=subaccount.sid, outs={'sid':subaccount.sid, 'auth_token':subaccount.auth_token})
def delete(self, id, props):
self.parent_client.api.accounts(id).update(status="closed")
class Account(Resource):
sid: Output[str]
auth_token: Output[str]
def __init__(self, name: str, props, opts: Optional[ResourceOptions] = None):
super().__init__(AccountProvider(props), name, {"name":name, 'sid':None, 'auth_token':None}, opts)
new_account = Account("new_account1", props=AccountCredentials(sid=account_sid, auth_token=auth_token))
dazzling-island-38975
08/17/2021, 7:11 AMancient-night-64850
08/17/2021, 5:39 PMstocky-magazine-78486
08/18/2021, 12:11 PMstocky-magazine-78486
08/18/2021, 1:28 PMconst role = new aws.iam.Role("callout-role", {
assumeRolePolicy: `{
"Version": "2012-10-17",
"Statement": [
{
"Action": "sts:AssumeRole",
"Principal": {
"Service": "<http://lambda.amazonaws.com|lambda.amazonaws.com>"
},
"Effect": "Allow",
"Sid": ""
}
]
}
`
});
new RolePolicyAttachment("callout-dynamodb-policy",
{
role: role,
policyArn: aws.iam.ManagedPolicies.AmazonDynamoDBFullAccess
});
When I tried one new RolePolicyAttachment
after the other, only the last one got picked!busy-house-95123
08/18/2021, 6:28 PM<project_name>:db:
admin:
password:
secure: AAABAKBt+0VMEPjInyCkjGfqcxu3TwrYr26RybtkL/NXo+iqVsUdEyBzKll/wZ7ZIVszYGBqy8o=
I could of course flatten this by not using the --path, and then I could use require_secrets. I’m wondering if this possible to do without flattening it.white-cat-90296
08/19/2021, 10:29 AM{
path: "/source",
method: "GET",
eventHandler: (req, ctx, cb) => {
cb(undefined, {
statusCode: 200,
body: Buffer.from(JSON.stringify({ name: "AWS" }), "utf8").toString("base64"),
isBase64Encoded: true,
headers: { "content-type": "application/json" },
})
}
}
modern-egg-24060
08/21/2021, 11:17 PMgifted-bird-61963
08/24/2021, 6:37 PMstraight-teacher-66836
08/26/2021, 3:06 PMerror: getting secrets manager: passphrase must be set with PULUMI_CONFIG_PASSPHRASE or PULUMI_CONFIG_PASSPHRASE_FILE environment variables
gorgeous-angle-43463
08/26/2021, 9:23 PMambitious-battery-86624
08/28/2021, 12:30 PMfresh-librarian-34748
08/30/2021, 3:19 AMpulumi update
always want to update nodeLaunchConfiguration
of eks:index:Cluster
after days, which will restart all k8s nodes after enable.
Do I miss some configuration that should be declared to pin it?
Here is some logs:
pulumi up --cwd infra --stack staging
Previewing update (staging)
View Live: <https://app.pulumi.com/Ma233/fiora/staging/previews/29e82764-6253-4f0d-9b22-f571eb3c75b3>
Type Name Plan Info
pulumi:pulumi:Stack fiora-staging 2 messages
└─ custom:resource:EKS jace
└─ eks:index:Cluster jace
+- ├─ aws:ec2:LaunchConfiguration jace-nodeLaunchConfiguration replace [diff: ~imageId]
~ └─ aws:cloudformation:Stack jace-nodes update [diff: ~templateBody]
Diagnostics:
pulumi:pulumi:Stack (fiora-staging):
W0830 11:13:24.710750 94282 transport.go:260] Unable to cancel request for *exec.roundTripper
W0830 11:13:24.927600 94285 transport.go:260] Unable to cancel request for *exec.roundTripper
Do you want to perform this update? details
pulumi:pulumi:Stack: (same)
[urn=urn:pulumi:staging::fiora::pulumi:pulumi:Stack::fiora-staging]
++aws:ec2/launchConfiguration:LaunchConfiguration: (create-replacement)
[id=jace-nodeLaunchConfiguration-6cc66d3]
[urn=urn:pulumi:staging::fiora::custom:resource:EKS$eks:index:Cluster$aws:ec2/launchConfiguration:LaunchConfiguration::jace-nodeLaunchConfiguration]
[provider=urn:pulumi:staging::fiora::pulumi:providers:aws::default_4_14_0::9f1d7127-76df-4224-b36c-9fc9ec0e7da3]
~ imageId: "ami-075bfc7d8a7e81bc5" => "ami-0d29b23a29ababad8"
+-aws:ec2/launchConfiguration:LaunchConfiguration: (replace)
[id=jace-nodeLaunchConfiguration-6cc66d3]
[urn=urn:pulumi:staging::fiora::custom:resource:EKS$eks:index:Cluster$aws:ec2/launchConfiguration:LaunchConfiguration::jace-nodeLaunchConfiguration]
[provider=urn:pulumi:staging::fiora::pulumi:providers:aws::default_4_14_0::9f1d7127-76df-4224-b36c-9fc9ec0e7da3]
~ imageId: "ami-075bfc7d8a7e81bc5" => "ami-0d29b23a29ababad8"
~ aws:cloudformation/stack:Stack: (update)
[id=arn:aws:cloudformation:us-east-2:145889354582:stack/jace-3b8b0f53/742364d0-f6cc-11eb-a94f-0a909640e19a]
[urn=urn:pulumi:staging::fiora::custom:resource:EKS$eks:index:Cluster$aws:cloudformation/stack:Stack::jace-nodes]
[provider=urn:pulumi:staging::fiora::pulumi:providers:aws::default_4_14_0::9f1d7127-76df-4224-b36c-9fc9ec0e7da3]
~ templateBody: "\n AWSTemplateFormatVersion: '2010-09-09'\n Outputs:\n NodeGroup:\n Value: !Ref NodeGroup\n Resources:\n NodeGroup:\n Type: AWS::AutoScaling::AutoScalingGroup\n Properties:\n DesiredCapacity: 2\n LaunchConfigurationName: jace-nodeLaunchConfiguration-6cc66d3\n MinSize: 2\n MaxSize: 10\n VPCZoneIdentifier: [\"subnet-00863d16d1e2634bd\",\"subnet-0a90bf1f4ab7acfe7\"]\n Tags:\n \n - Key: Name\n Value: jace-worker\n PropagateAtLaunch: 'true'\n - Key: <http://kubernetes.io/cluster/jace\n|kubernetes.io/cluster/jace\n> Value: owned\n PropagateAtLaunch: 'true'\n UpdatePolicy:\n AutoScalingRollingUpdate:\n MinInstancesInService: '1'\n MaxBatchSize: '1'\n " => output<string>
--aws:ec2/launchConfiguration:LaunchConfiguration: (delete-replaced)
[id=jace-nodeLaunchConfiguration-6cc66d3]
[urn=urn:pulumi:staging::fiora::custom:resource:EKS$eks:index:Cluster$aws:ec2/launchConfiguration:LaunchConfiguration::jace-nodeLaunchConfiguration]
[provider=urn:pulumi:staging::fiora::pulumi:providers:aws::default_4_14_0::9f1d7127-76df-4224-b36c-9fc9ec0e7da3]
victorious-tomato-90057
08/31/2021, 3:41 AMancient-night-64850
09/01/2021, 8:13 PMbreezy-piano-61073
09/01/2021, 8:26 PMâžś pulumi up -y
Previewing update (dai-shared-dev-us-west-2):
Type Name Plan
...
Resources:
7 unchanged
Updating (...):
Type Name Status
Outputs:
- bucket_name: "my-bucket-57931f5" <- ##### HOW TO REMOVE THIS?
Resources:
7 unchanged
Duration: 1s
dazzling-angle-45051
09/02/2021, 10:23 AMbetter-noon-15962
09/03/2021, 12:33 PMpulumi stack init my-stack
to use <hashivault://my-secret>
by default without having to specify --secrets-provider="<hashivault://payroll>"
everytime. Or is there a way to prevent initializing a stack using the passphrase strategy? Thanks!many-yak-61188
09/03/2021, 7:01 PMconst image = repo.buildAndPushImage({
context: '../',
});
I looked for example and documentation, but could not find an example of how to specify a label for the image - for instance i'd like to label the image api
Does anyone have any pointers? much appreciated tymany-yak-61188
09/03/2021, 7:01 PMconst image = repo.buildAndPushImage({
context: '../',
});
I looked for example and documentation, but could not find an example of how to specify a label for the image - for instance i'd like to label the image api
Does anyone have any pointers? much appreciated tygreat-queen-39697
09/07/2021, 4:22 PMmany-yak-61188
09/08/2021, 3:33 AM