echoing-jelly-67975
08/18/2021, 11:50 PMawsx.autoscaling.AutoScalingLaunchConfiguration
and spot instances.
I'm getting a Placement tenancy is not supported for spot instances.
, and placementTenancy
is defaulting to default
with no way to not set it.limited-rainbow-51650
08/19/2021, 6:49 AMAugust 18
release blog article:
https://www.pulumi.com/blog/pulumi-release-notes-m60/#dependson-now-works-for-pulumi-component-packages-and-more
In the linked section on dependsOn
, I read this:
Now, depending on a Pulumi Component Package's component will always wait on all of that component's children, regardless of language.
A ComponentResource
and a Pulumi Component Package are 2 different things. Does this change impacts the dependency management of a ComponentResource
?salmon-guitar-84472
08/19/2021, 6:54 AMerror: Duplicate resource URN 'urn:pulumi:xxxaks::ZGA.Infrastructure.NewPartner.AKS::kubernetes:<http://helm.sh/v3:Chart$kubernetes:apiextensions.k8s.io/v1:CustomResourceDefinition::monitoring/prometheus-kube-prometheus-alertmanager';|helm.sh/v3:Chart$kubernetes:apiextensions.k8s.io/v1:CustomResourceDefinition::monitoring/prometheus-kube-prometheus-alertmanager';> try giving it a unique name
rich-action-28775
08/19/2021, 8:52 AMpulumi stack --show-ids
pulumi stack --show-urns
Also searched for it in the UI in Pulumi.comelegant-pager-5412
08/19/2021, 12:51 PMacoustic-arm-10406
08/19/2021, 6:29 PMimport * as awsx from "@pulumi/awsx";
https://www.pulumi.com/docs/guides/crosswalk/aws/api-gateway/#defining-a-lambda-function-event-handler-route
When I do pulumi up
It's saying I have to use require
because of a node_module from pulumi is using require. I would like to use import instead of refactoring all my code to use require
Error:
require() of /index.js from /node_modules/@pulumi/pulumi/cmd/run/run.js is an ES module file as it is a .js file whose nearest parent package.json contains "type": "module" which defines all .js files in that package scope as ES modules.
Instead rename index.js to end in .cjs, change the requiring code to use import(), or remove "type": "module" from /package.json.
acoustic-window-73051
08/19/2021, 7:47 PMpulumi up --logtostderr -v=9 --debug
it.hangs with:
I0819 19:39:01.591124 23811 eventsink.go:59] waiting for quiescence; 100 RPCs outstanding
I0819 19:39:01.591137 23811 eventsink.go:62] eventSink::Debug(<{%reset%}>waiting for quiescence; 100 RPCs outstanding<{%reset%}>)
I0819 19:39:01.591479 23811 eventsink.go:59] waiting for quiescence; 99 RPCs outstanding
I0819 19:39:01.591491 23811 eventsink.go:62] eventSink::Debug(<{%reset%}>waiting for quiescence; 99 RPCs outstanding<{%reset%}>)
I0819 19:39:01.592633 23811 eventsink.go:59] waiting for quiescence; 98 RPCs outstanding
I0819 19:39:01.592646 23811 eventsink.go:62] eventSink::Debug(<{%reset%}>waiting for quiescence; 98 RPCs outstanding<{%reset%}>)
I0819 19:39:01.593078 23811 eventsink.go:59] waiting for quiescence; 97 RPCs outstanding
I0819 19:39:01.593091 23811 eventsink.go:62] eventSink::Debug(<{%reset%}>waiting for quiescence; 97 RPCs outstanding<{%reset%}>)
acoustic-window-73051
08/19/2021, 7:47 PMvictorious-dusk-75271
08/20/2021, 6:15 AMvictorious-dusk-75271
08/20/2021, 6:17 AMvictorious-dusk-75271
08/20/2021, 6:17 AMvictorious-dusk-75271
08/20/2021, 6:18 AMfamous-train-16653
08/20/2021, 7:45 AM'error: installing [resource plugin kubernetes-3.5.0] from : untarring file /Users/johndoe/.pulumi/plugins/resource-kubernetes-v3.5.0/pulumi-resource-kubernetes: stream error: stream ID 1; PROTOCOL_ERROR\n'
magnificent-gigabyte-61048
08/20/2021, 10:02 AMcreamy-table-33432
08/20/2021, 10:53 AMmillions-eve-97186
08/20/2021, 1:03 PMlittle-journalist-4778
08/20/2021, 4:03 PMbrash-quill-35776
08/20/2021, 5:09 PMerror: Preview failed: refreshing urn:pulumi:cluster.dev::a207937_stratus-cluster::gcp:serviceAccount/account:Account$gcp:serviceAccount/key:Key::serviceAccount-key: 1 error occurred:
* Error when reading or editing Service Account Key "projects/a207937-stratus-cicd/serviceAccounts/stratus@a207937-stratus-cicd.iam.gserviceaccount.com/keys/c69bf4cd7b0f1d4d0d2f0e667a8bf61542c88aa2": Get "<https://iam.googleapis.com/v1/projects/a207937-stratus-cicd/serviceAccounts/stratus@a207937-stratus-cicd.iam.gserviceaccount.com/keys/c69bf4cd7b0f1d4d0d2f0e667a8bf61542c88aa2?alt=json&prettyPrint=false&publicKeyType=TYPE_X509_PEM_FILE>": Post "<https://oauth2.googleapis.com/token>": dial tcp: lookup <http://oauth2.googleapis.com|oauth2.googleapis.com> on 100.64.0.1:53: read udp 192.168.2.11:57302->100.64.0.1:53: i/o timeout (Client.Timeout exceeded while awaiting headers)
This happens back and forth, sometimes working sometimes not, it for now only snarl me for GCP project only
I can use the same setup to pulumi up
an Azure project succesfullybrave-angle-33257
08/20/2021, 9:18 PMvar stackref = new pulumi.StackReference('s3stack');
var resource = new <http://aws.XXX|aws.XXX>('resource', {
bucket: stackref.getOutput('outputs').apply(v=>v['storagebucket']['bucket'])
})
I'm trying to use this with a pulumi.all like this but can't get it working, it always shows up as [object] in the policy I'm trying to create. The deploy bucket is created in another stack, and the artifact bucket is created in this same stack with the build project
let pipeline_role_policy = new aws.iam.Policy(pipeline_role_name, {
name: pipeline_role_name,
policy: pulumi
.all([stackref.getOutput("outputs"), this_stack_pipeline_bucket.arn])
.apply(([bucketOutputs, artifactBucketArn]) => {
return {
Version: "2012-10-17",
Statement: [
{
Effect: "Allow",
Action: ["s3:*"],
Resource: [
`${bucketOutputs['deploy']['bucket']}`,
`${bucketOutputs['deploy']['bucket']}/*`,
`${artifactBucketArn}`,
`${artifactBucketArn}/*`,
],
},
],
};
})
.apply(JSON.stringify),
});
brave-angle-33257
08/20/2021, 9:19 PM{\"Effect\":\"Allow\",\"Action\":[\"s3:*\"],\"Resource\":[\"[object Object]\",\"[object Object]/*\",
big-island-38073
08/22/2021, 9:18 PMpulumi up
I see my nested resources in my pulumi cloud resources tab, can I fetch those outputs from the command line?bland-smartphone-19451
08/23/2021, 2:12 AMacoustic-yacht-17594
08/23/2021, 9:01 AMthousands-planet-78612
08/23/2021, 10:44 AM// this function defines our pulumi S3 static website in terms of the content that the caller passes in.
// this allows us to dynamically deploy websites based on user defined values from the POST body.
func createPulumiProgram(content string) pulumi.RunFunc {
return func(ctx *pulumi.Context) error {
// our program defines a s3 website.
// here we create the bucket
siteBucket, err := s3.NewBucket(ctx, "s3-website-bucket", &s3.BucketArgs{
Website: s3.BucketWebsiteArgs{
IndexDocument: pulumi.String("index.html"),
},
})
if err != nil {
return err
}
// here our HTML is defined based on what the caller curries in.
indexContent := content
// upload our index.html
if _, err := s3.NewBucketObject(ctx, "index", &s3.BucketObjectArgs{
Bucket: siteBucket.ID(), // reference to the s3.Bucket object
Content: pulumi.String(indexContent),
Key: pulumi.String("index.html"), // set the key of the object
ContentType: pulumi.String("text/html; charset=utf-8"), // set the MIME type of the file
}); err != nil {
return err
}
// Set the access policy for the bucket so all objects are readable.
if _, err := s3.NewBucketPolicy(ctx, "bucketPolicy", &s3.BucketPolicyArgs{
Bucket: siteBucket.ID(), // refer to the bucket created earlier
Policy: pulumi.Any(map[string]interface{}{
"Version": "2012-10-17",
"Statement": []map[string]interface{}{
{
"Effect": "Allow",
"Principal": "*",
"Action": []interface{}{
"s3:GetObject",
},
"Resource": []interface{}{
pulumi.Sprintf("arn:aws:s3:::%s/*", siteBucket.ID()), // policy refers to bucket name explicitly
},
},
},
}),
}); err != nil {
return err
}
// export the website URL
ctx.Export("websiteUrl", siteBucket.WebsiteEndpoint)
return nil
}
}
creamy-holiday-75376
08/23/2021, 1:46 PMnice-yak-27438
08/23/2021, 3:03 PMdamp-memory-66729
08/23/2021, 5:20 PMignoreChanges
option is working for aws.route53.Record. If we ignore change on one prop and another one changes, does Pulumi override all the props of a resource?echoing-jelly-67975
08/23/2021, 8:10 PMdry-florist-5950
08/24/2021, 1:48 PMcolossal-flower-87257
08/24/2021, 7:51 PM