wonderful-zoo-8760
02/13/2021, 9:02 AMwide-crayon-4093
02/13/2021, 10:05 AMbland-needle-41654
02/13/2021, 11:57 AMpip install pulumi-azuread
brave-angle-33257
02/13/2021, 5:08 PMrich-breakfast-87724
02/13/2021, 7:58 PMconst autoScalingGroup = new awsx.autoscaling.AutoScalingGroup(`${STACK}-myproject-baseline-asgroup`, {
launchConfiguration: autoScalingLaunchConfiguration,
templateParameters: {
minSize: 1,
healthCheckType: "EC2",
},
vpc: myVpc,
subnetIds: myVpc.privateSubnetIds,
targetGroups: [
targetGroup
],
onFailure: "DO_NOTHING"
},
{
customTimeouts: {
create: '5m',
update: '5m',
}
}
);
However, this didn't work, and I'm still subject to the stack timeout.
BUT, that is not the real issue. The real issue is that the stack never receives a success signal and, therefore, it always rolls back and gets deleted.
This is the error message: Received 0 SUCCESS signal(s) out of 1. Unable to satisfy 100% MinSuccessfulInstancesPercent requirement
The stack is launched and an EC2 instance is spawned, I'm passing a user_data script to this EC2 instance that is working perfectly.
After some research I found out about the cfn-signal script that can be used in CloudFormation stack templates, but I couldn't find any usage example of this use inside user_data scripts.
Just to point out, I've also given all cloudformation permissions in the autoscaling launch configuration, to ensure that the stack can talk to the EC2 instance.
Does anyone have a clue of whats going on?ripe-kite-37642
02/14/2021, 7:37 PMpulumi:providers:random (default_3_3_0):
error: no resource plugin 'random-v3.3.0' found in the workspace or on your $PATH, install the plugin using `pulumi plugin install resource random v3.3.0`
I’m using the python SDK with the requirements:
pulumi 2.20.0
pulumi-azure 3.45.0
pulumi-azuread 3.3.0
pulumi-kubernetes 2.8.0
pulumi-random 3.0.2
With the following plugins cached:
❯ pulumi plugin ls
NAME KIND VERSION SIZE INSTALLED LAST USED
azure resource 3.46.0 215 MB 6 days ago 6 days ago
azure resource 3.45.0 214 MB 1 week ago 1 week ago
azure resource 3.44.0 213 MB 2 weeks ago 2 weeks ago
azure resource 3.42.0 211 MB 1 month ago 1 month ago
azure resource 3.41.1 210 MB 1 month ago 1 month ago
azure resource 3.3.0 175 MB 1 week ago 1 week ago
azuread resource 3.3.0 43 MB 1 week ago 1 week ago
azuread resource 3.2.0 43 MB 2 weeks ago 2 weeks ago
kubernetes resource 2.8.1 70 MB 2 hours ago 2 hours ago
kubernetes resource 2.8.0 70 MB 1 week ago 1 week ago
kubernetes resource 2.7.7 70 MB 2 weeks ago 2 weeks ago
random resource 3.0.2 31 MB 5 days ago 5 days ago
random resource 3.0.1 31 MB 1 hour ago 1 hour ago
Any ideas? I’m not sure where it’s getting v3.3.0 for the random provider from!red-football-97286
02/15/2021, 11:36 AMstocky-sundown-89565
02/15/2021, 11:47 AMchilly-magazine-6129
02/16/2021, 12:06 AMbig-state-95297
02/16/2021, 12:10 AMpulumi:pulumi:Stack (eks-dev):
error: program failed: missing one or more required arguments
exit status 1
error: an unhandled error occurred: program exited with non-zero exit code: 1
This is happening after I added the following to my eks cluster setup project:
oidcUrl := eksCluster.Core.OidcProvider().ApplyT(func(oidc *iam.OpenIdConnectProvider) pulumi.StringOutput { return oidc.Url })
ctx.Export("oidcUrl", oidcUrl)
eksCluster
is defined before as:
eksCluster, err := eks.NewCluster(ctx, "eks-cluster", &eks.ClusterArgs{
VpcId: pulumi.String(defaultVpc.Id),
SubnetIds: toPulumiStringArray(subnet.Ids),
InstanceType: pulumi.String("t2.medium"),
DesiredCapacity: <http://pulumi.Int|pulumi.Int>(1),
MaxSize: <http://pulumi.Int|pulumi.Int>(1),
MinSize: <http://pulumi.Int|pulumi.Int>(1),
EncryptionConfigKeyArn: key.Arn,
CreateOidcProvider: pulumi.Bool(true),
})
When I run the command with --verbose 6
, the logs show:
pulumi:pulumi:Stack eks-dev running.. error: program failed: missing one or more required arguments
I0215 16:57:18.681283 66724 eventsink.go:78] eventSink::Infoerr(<{%reset%}>exit status 1
pulumi:pulumi:Stack eks-dev running.. exit status 1
I0215 16:57:18.700585 66724 source_eval.go:178] EvalSourceIterator ended with an error: an unhandled error occurred: program exited with non-zero exit code: 1
How can I debug this further?curved-pharmacist-41509
02/16/2021, 3:31 AMunhandled rejection: CONTEXT(11151): resource:news-perthnow-dev-curation-app-task[aws:ecs/taskDefinition:TaskDefinition]
STACK_TRACE:
Error
at Object.debuggablePromise (/Users/jakeginnivan/_code/news-mono/node_modules/@pulumi/pulumi/runtime/debuggable.js:69:75)
at Object.registerResource (/Users/jakeginnivan/_code/news-mono/node_modules/@pulumi/pulumi/runtime/resource.js:219:18)
at new Resource (/Users/jakeginnivan/_code/news-mono/node_modules/@pulumi/pulumi/resource.js:215:24)
at new CustomResource (/Users/jakeginnivan/_code/news-mono/node_modules/@pulumi/pulumi/resource.js:307:9)
at new TaskDefinition (/Users/jakeginnivan/_code/news-mono/node_modules/@pulumi/ecs/taskDefinition.ts:209:9)
at new FargateApplication (/Users/jakeginnivan/_code/news-mono/dist/apps/infrastructure/webpack:/libs/pulumi-resources/src/lib/fargate-application.ts:308:22)
at new CurationApi (/Users/jakeginnivan/_code/news-mono/dist/apps/infrastructure/webpack:/libs/pulumi-resources/src/lib/curation.ts:206:29
Having a lot of trouble tracking down what is causing this, any pointers?fierce-engine-31599
02/16/2021, 7:58 AMechoing-activity-32278
02/16/2021, 9:21 AMpulumi
CLIbland-salesclerk-63112
02/16/2021, 10:11 AMvictorious-sugar-42620
02/16/2021, 11:25 AMdry-football-2639
02/16/2021, 11:30 AMThe Pulumi runtime detected that 5485 promises were still active
at the time that the process exited. There are a few ways that this can occur:
* Not using `await` or `.then` on a Promise returned from a Pulumi API
* Introducing a cyclic dependency between two Pulumi Resources
* A bug in the Pulumi Runtime
Leaving promises active is probably not what you want. If you are unsure about
why you are seeing this message, re-run your program with the `PULUMI_DEBUG_PROMISE_LEAKS`
environment variable. The Pulumi runtime will then print out additional
debug information about the leaked promises.
icy-jordan-58549
02/16/2021, 2:39 PMlemon-machine-35564
02/16/2021, 4:43 PMpreview
or up
the Lambda does not show up at all. Anyone run into this?gentle-monitor-55086
02/16/2021, 7:25 PMflat-insurance-25294
02/16/2021, 9:28 PMindex.ts
Where I define RDS, VPC, EKS, Pods/Services and etc.
I run Pulumi Up on it.
And some time later, I run Pulumi Up again but this time, I’ve commented out RDS, VPC, but still got EKS and K8 stuff.
Will Pulumi tear things down?
The reason I ask, is because I am worried about bugs on Pulimi side of things.
I like the idea of always having the state of the infra being pushed WITH the app and Pulumi doing changes if it see’s any, but I have been entertaining the notion of having the state of infra to be omitted, and just have the the EKS and K8 Manifests as part of Pulumi.
This would be like env variable that toggles what part of index.ts
it should run.stocky-student-96739
02/16/2021, 10:15 PMflat-insurance-25294
02/16/2021, 10:19 PMsparse-state-34229
02/17/2021, 8:37 AM├─ hatch:group_policy:GroupPolicy manage-self-main
│ │ URN: urn:pulumi:main::account::hatch:group_policy:GroupPolicy::manage-self-main
│ ├─ hatch:group:Group manage-self
│ │ │ URN: urn:pulumi:main::account::hatch:group_policy:GroupPolicy$hatch:group:Group::manage-self
│ │ └─ aws:iam/group:Group manage-self
│ │ URN: urn:pulumi:main::account::hatch:group_policy:GroupPolicy$hatch:group:Group$aws:iam/group:Group::manage-self
│ ├─ hatch:policy:Policy manage-self-main
│ │ │ URN: urn:pulumi:main::account::hatch:group_policy:GroupPolicy$hatch:policy:Policy::manage-self-main
│ │ └─ aws:iam/policy:Policy manage-self
│ │ URN: urn:pulumi:main::account::hatch:group_policy:GroupPolicy$hatch:policy:Policy$aws:iam/policy:Policy::manage-self
│ └─ aws:iam/groupPolicyAttachment:GroupPolicyAttachment manage-self
│ URN: urn:pulumi:main::account::hatch:group_policy:GroupPolicy$aws:iam/groupPolicyAttachment:GroupPolicyAttachment::manage-self
and I need to be able to import the AWS resources’ parents to maintain the relationshipjolly-bear-34819
02/17/2021, 10:42 AMpulumi new
on Azure DevOps.
When I run pulumi new https://<org>@dev.azure.com/<org>/....
I always get "error: repository not found".
Running git clone
with this URL works fine. Is Azure DevOps not supported? Does anyone have experience with hosting a template on Azure DevOps?chilly-hospital-92934
02/17/2021, 1:59 PMimport pulumi_terraform as terraform
network_state = terraform.state.RemoteStateReference('network',
backend_type='local',
args=terraform.state.LocalBackendArgs(path='terraform.tfstate'))
output_map = network_state.get_output('output_map')
then I would like to base on output_map in loop:
for key, properties in output_map.items():
pulumi_provider1(properties['value1'])
pulumi_provider2(properties['value2'])
...
but it's not possible because output_map is a object.
TypeError: 'Output' object is not callable
I have seen https://www.pulumi.com/docs/guides/adopting/from_terraform/#referencing-terraform-state but here is only the basic usage of output values.
It is possible to convert this object to dict or something like that?adamant-translator-31969
02/17/2021, 4:42 PMError: invocation of aws:rds/getEngineVersion:getEngineVersion returned an error: 1 error occurred:
* error configuring Terraform AWS Provider: Error creating AWS session: SharedConfigErr: only one credential type may be specified per profile: source profile, credential source, credential process, web identity token, or sso
early-motorcycle-69706
02/17/2021, 6:22 PMpanic: runtime error: invalid memory address or nil pointer dereference
[signal SIGSEGV: segmentation violation code=0x1 addr=0x18 pc=0x19d07fb]
....
Exception: invocation of kubernetes:kustomize:directory returned an error: transport is closing
Running with kuztomize
works fine.early-motorcycle-69706
02/17/2021, 6:35 PMcluster.kubeconfig
and cluster.provider
don't work. Is there updated docs?
Note: I am doing this with gcp and not aws. I guess I'm wondering what the equivalent is for gcp.container.Cluster
clever-plumber-29709
02/17/2021, 6:49 PMbored-oyster-3147
02/17/2021, 6:51 PMPulumi.Stack
implementation to take in an Input
? This is separate from config
because this is a value that will be different everytime up
is called in our CI/CD (it is a build number)