some-chef-79525
06/08/2020, 7:54 AMsparse-state-34229
06/08/2020, 8:28 AMsome-chef-79525
06/08/2020, 8:57 AMsome-chef-79525
06/08/2020, 8:58 AMgifted-city-99717
06/08/2020, 8:26 PMDiagnostics:
[ yments/ci-telemetry/datastores ] aws:iam:ServiceLinkedRole (insights-ci-es-dev-linked-role):
[ yments/ci-telemetry/datastores ] error: Error creating service-linked role with name <http://es.amazonaws.com|es.amazonaws.com>: InvalidInput: Service role name AWSServiceRoleForAmazonElasticsearchService has been taken in this account, please try a different suffix.
[ yments/ci-telemetry/datastores ] status code: 400, request id: a5add6a6-3215-463a-80d8-19509d7d0e21
If I try a CustomSuffix
in the DomainArgs struct, I’m told suffixs aren’t support with ES. can I only have 1 cluster per account?gifted-city-99717
06/08/2020, 8:38 PMgifted-city-99717
06/08/2020, 8:46 PMplain-park-4925
06/08/2020, 10:05 PMbest-receptionist-98400
06/10/2020, 2:01 PMbitter-zebra-93800
06/10/2020, 4:09 PMsubnetId: vpc.publicSubnetIds[0], // use the subnet(s) from awsx.ec2.Vpc
It works fine in 3 of my stacks with identical vpcs but on a new on it gives this error
Element implicitly has an 'any' type because expression of type '0' can't be used to index type 'Promise<Output<string>[]>'.
Property '0' does not exist on type 'Promise<Output<string>[]>'.
I am baffled by it, if I copy index.ts to a new name it does not show the error. Any help greatly appreciated.millions-furniture-75402
06/10/2020, 4:22 PMpulumi logs -f
not aggregating cloudwatch logs recently? They are in cloudwatch, but the logs command isn’t displaying anything.gifted-city-99717
06/10/2020, 7:09 PM[ ts/ci-telemetry/notifying-sink ] Updating (p-it-loptaploca-notifying--d6912a43):
[ ts/ci-telemetry/notifying-sink ]
[ ts/ci-telemetry/notifying-sink ] pulumi:pulumi:Stack corelight-notifying-sink-p-it-loptaploca-notifying--d6912a43 running
[ ts/ci-telemetry/notifying-sink ] citelemetry:notifyingsink:S3SinkBucket ci-telemetry-test
[ ts/ci-telemetry/notifying-sink ] aws:iam:Role task-exec-role
[ ts/ci-telemetry/notifying-sink ] aws:s3:Bucket ci-telemetry-test
[ ts/ci-telemetry/notifying-sink ] aws:lambda:Function s3Handler
[ ts/ci-telemetry/notifying-sink ] aws:sns:Topic ci-telemetry-test-sns-topic
[ ts/ci-telemetry/notifying-sink ] aws:lambda:Permission lambda-permission
[ ts/ci-telemetry/notifying-sink ] + aws:s3:BucketNotification ci-telemetry-test-notification creating
[ ts/ci-telemetry/notifying-sink ] aws:sns:TopicSubscription topic-subscription
[ ts/ci-telemetry/notifying-sink ] + aws:s3:BucketNotification ci-telemetry-test-notification creating error: Error putting S3 notification configuration: InvalidARNError: invalid ARN
[ ts/ci-telemetry/notifying-sink ] + aws:s3:BucketNotification ci-telemetry-test-notification **creating failed** error: Error putting S3 notification configuration: InvalidARNError: invalid ARN
[ ts/ci-telemetry/notifying-sink ] pulumi:pulumi:Stack corelight-notifying-sink-p-it-loptaploca-notifying--d6912a43 running error: update failed
[ ts/ci-telemetry/notifying-sink ] pulumi:pulumi:Stack corelight-notifying-sink-p-it-loptaploca-notifying--d6912a43 **failed** 1 error
[ ts/ci-telemetry/notifying-sink ] citelemetry:notifyingsink:S3SinkBucket ci-telemetry-test
[ ts/ci-telemetry/notifying-sink ]
the code looks like
resource.Bucket, err = s3.NewBucket(ctx, name, &s3.BucketArgs{
Bucket: pulumi.String(name),
}, pulumi.Parent(&resource))
if err != nil {
return nil, err
}
resource.Topic, err = sns.NewTopic(ctx, name+"-sns-topic", &sns.TopicArgs{
Policy: pulumi.Sprintf(`{
"Version":"2012-10-17",
"Statement":[{
"Effect": "Allow",
"Principal": { "AWS": "*" },
"Action": "SNS:Publish",
"Resource": "arn:aws:sns:*:*:s3-event-notification-topic",
"Condition":{
"ArnLike":{"aws:SourceArn": "%s"}
}
}]
}`, resource.Bucket.Arn),
}, pulumi.Parent(&resource))
if err != nil {
return nil, err
}
// I think this is causing the 'Invalid ARN'
resource.S3Notification, err = s3.NewBucketNotification(ctx, name+"-notification", &s3.BucketNotificationArgs{
Bucket: resource.Bucket.Arn,
Topics: s3.BucketNotificationTopicArray{
s3.BucketNotificationTopicArgs{
Events: toPulumiStringArray("s3:ObjectCreated:*"),
TopicArn: resource.Topic.Arn,
},
},
}, pulumi.Parent(&resource), pulumi.DependsOn([]pulumi.Resource{resource.Bucket, resource.Topic}))
if err != nil {
return nil, err
}
Has anyone seen anything like this before? Or maybe there’s an example of a bucketnotification?little-cartoon-10569
06/10/2020, 9:41 PMaws.cloudwatch.onSchedule()
. I can run console.log
inside the eventhandler code and I can see the output in my cloudwatch log. But the console.log
code I have inside my ec2Client.describeInstances()
callback is not appearing in cloudwatch; I don't know if it's because the callback isn't being called, or if there's insufficient permissions. How should I investigate? Where would (for example) permission errors show up?worried-engineer-33884
06/12/2020, 11:42 PMbitter-zebra-93800
06/14/2020, 10:29 PM// Get latest Debian Buster AMI
const busterId = aws.getAmi({
owners: ["136693071363"],
mostRecent: true,
filters: [{
name: "name",
values: ["debian-10-amd64-*"],
}],
}, { async: true }).then(ami => ami.id);
hundreds-portugal-17080
06/16/2020, 7:27 PMimport * as pulumi from "@pulumi/pulumi";
import * as aws from "@pulumi/aws";
import * as awsx from "@pulumi/awsx";
import * as eks from "@pulumi/eks";
// Create an EKS cluster with the default configuration.
const cluster = new eks.Cluster("my-cluster");
// Export the cluster's kubeconfig.
export const kubeconfig = cluster.kubeconfig
nice-airport-15607
06/16/2020, 8:55 PMfull-window-21515
06/17/2020, 5:13 AMpulumi up
command wait for the user_data scripts to complete before returning?powerful-pharmacist-31524
06/18/2020, 12:58 PMmock_image = docker.Image('mock-server-image',
build=docker.DockerBuild(context='../',
dockerfile=f'../Dockerfile'),
image_name=f'{repo.repository_url}',
registry=registry)
But as soon as I add an environment variable …
mock_image = docker.Image('mock-server-image',
build=docker.DockerBuild(context='../',
dockerfile=f'../Dockerfile',
env={'MOCK_PORT': '80'}),
image_name=f'{repo.repository_url}',
registry=registry)
I get an error: FileNotFoundError: [Errno 2] No such file or directory: 'docker': 'docker'
important-appointment-55126
06/18/2020, 2:17 PMenv
like that replaces the entire environment, including likes like PATH
- you’d probably want to fetch the existing environment and add your MOCK_PORT
entry to it, and then pass that to env
dazzling-sundown-39670
06/22/2020, 3:08 PMerror: aws:cloudfront/distribution:Distribution resource 'cdn' has a problem: "origin.0.domain_name": required field is not set
I have it specified here: https://gist.github.com/benjick/c356bf1776ae5da21cb42baf24eb3563#file-docs-s3-pulumi-ts-L21
I was following this tutorial: https://www.pulumi.com/blog/serving-a-static-website-on-aws-with-pulumi/salmon-ghost-86211
06/22/2020, 3:59 PMEnable Group Metrics Collection
. I want it enabled when it is created.
I am using the eks
APIs and calling eks.Cluster
and then cluster.createNodeGroup
.
I have been able to retrieve from the nodeGroup properties the actual ASG name, but I am not sure how to either update an ASG to have the metrics enabled or to enable metrics on nodeGroup creation.calm-parrot-72437
06/22/2020, 10:59 PMastonishing-quill-88807
06/23/2020, 7:58 PMastonishing-quill-88807
06/23/2020, 8:20 PMastonishing-quill-88807
06/23/2020, 8:21 PMfaint-motherboard-95438
06/25/2020, 4:12 PMpulumi destroy
my stack with an eks cluster and its dedicated VPC (created with new awsx.ec2.Vpc()
). It hangs and ultimately fails to delete this VPC (while everything else from the stack has been properly destroyed).
If I try to delete it manually with AWS console or CLI, everything’s fine, no error and it’s instantly deleted.
I’m using the same AWS profile both for pulumi, the CLI or the console in order to exclude any permissions side effects.
error: deleting urn:pulumi:integration::platform::platform:Cluster$awsx:x:ec2:Vpc$aws:ec2/vpc:Vpc::main-cluster-main-vpc: Error deleting VPC: DependencyViolation: The vpc 'vpc-0f6b89731e2593036' has dependencies and cannot be deleted.
status code: 400, request id: fdefca83-99e9-4b10-8d0f-2d3e5b9ab1b7
I don’t know what dependencies it’s talking about (no clue added in the error), and it does not seems to be an issue when deleting manually from console/CLI.
What am I missing here ?best-receptionist-98400
06/26/2020, 12:17 AMloud-battery-37784
06/26/2020, 1:59 PMcalm-parrot-72437
06/26/2020, 11:46 PMcalm-parrot-72437
06/26/2020, 11:46 PM