white-secretary-18260
06/21/2021, 4:42 PMpulumi plugin install resource aws v3.32.0
and I get this:
error: [resource plugin aws-3.32.0] downloading from : 403 HTTP error fetching plugin from <https://get.pulumi.com/releases/plugins/pulumi-resource-aws-v3.32.0-darwin-arm64.tar.gz>
CLI v3.5.1, using typescript npm modules: pulumi 2.22 and aws 3.32creamy-knife-93354
06/22/2021, 8:12 AMgreat-sunset-355
06/22/2021, 10:30 AMeb cli
that zips and uploads the app directory to S3 bucket and references that to EB environment
When I use this with pulumi
it will manage the object and when it changes it deletes the old one and uploads a new version instead of preserving the old object.
Do I need to write my own function with aws sdk to zip the file and upload or can pulumi do that for me?
Thank you
eb_app_archive = s3.BucketObject(
f"app-archive-{ver}",
bucket=eb_s3_bucket.id,
key=f"jan-{ver}.zip",
source=pulumi.FileArchive("../app"),
)
proud-pizza-80589
06/22/2021, 5:52 PMbillowy-whale-42059
06/22/2021, 6:45 PMadamant-dress-73325
06/23/2021, 4:46 PMflat-appointment-12338
06/23/2021, 5:32 PMawsx.ecr.buildAndPushImage
?quaint-guitar-13446
06/24/2021, 5:32 AMenableExecuteCommand
does not appear to be available on FargateService
type. According to https://docs.aws.amazon.com/AmazonECS/latest/developerguide/ecs-exec.html it should be available as long as you're using platform version 1.4.0quaint-guitar-13446
06/24/2021, 5:33 AMstocky-morning-21061
06/24/2021, 12:16 PMmillions-furniture-75402
06/24/2021, 12:34 PMconst myEc2 = new aws.ec2.Instance(...);
myEc2.id.apply(
myEc2Id =>
new aws.cloudwatch.LogGroup(`${appName}-ec2-lg`, {
name: `/custom/ec2/${appName}/${myEc2Id}`,
retentionInDays: 14,
}),
);
I would think I could retrieve a collection of EC2 Instances from the autoscaling group, but I’m not finding that to be true. https://www.pulumi.com/docs/reference/pkg/aws/autoscaling/group/#outputsmillions-furniture-75402
06/24/2021, 1:27 PMType Name Plan Info
pulumi:pulumi:Stack outbound-proxy-sandbox.eu-central-1
└─ aws:ec2:LaunchTemplate outbound-proxy-launch-template 1 error
Diagnostics:
aws:ec2:LaunchTemplate (outbound-proxy-launch-template):
error: aws:ec2/launchTemplate:LaunchTemplate resource 'outbound-proxy-launch-template' has a problem: Expected Object Type: Expected object, got string. Examine values at 'LaunchTemplate.IamInstanceProfile'.
I am declaring the object:
const outboundProxyIamInstanceProfile = new aws.iam.InstanceProfile(`${appName}-instance-profile`, {
role: outboundProxyInstanceRole,
});
const outboundProxyLaunchTemplate = new aws.ec2.LaunchTemplate(
`${appName}-launch-template`,
{
namePrefix: `${appName}-`,
iamInstanceProfile: outboundProxyIamInstanceProfile,
...
},
{ dependsOn: outboundProxyIamInstanceProfile },
);
I can define it inline as an object… but then… lol…
aws:iam:InstanceProfile (outbound-proxy-instance-profile):
error: Duplicate resource URN 'urn:pulumi:sandbox.eu-central-1::outbound-proxy::aws:iam/instanceProfile:InstanceProfile::outbound-proxy-instance-profile'; try giving it a unique name
damp-school-17708
06/24/2021, 1:54 PMnew awsx.ecs.FargateService
therefore I am building docker images via pulumi, I am on an M1 mac, which means that if I try to build and push to ECR/ECS an image it will be in the wrong architecture to run in ECS later on.
Do you know if there's a way to force buildx to build for a certain architecture? Or a way to pass the flag to pulumi?
Thankslively-lizard-8189
06/24/2021, 3:18 PMpulumi up
is building and pushing a new image for a containerized lambda when there are no changes to the image? The image builds quickly enough but it takes over 20 minutes 😱 to push the image to ECR (determined from viewing Diagnostics logs during deployment).
Some avenues I’ve explored:
• I’m not sure if there’s a disconnect between ECR’s layer caches.. am I’m inadvertently building an entirely new lambda each time rather than updating the image tag?
• Why would pulumi find changes to the image when no source code was changed?
• https://github.com/pulumi/pulumi-docker/issues/32 Are there any workarounds for this?
The lambda built from a docker image (same design pattern as https://www.pulumi.com/blog/aws-lambda-container-support/)
export const myLambda = new aws.lambda.Function('myName', {
packageType: 'Image',
imageUri: image.imageValue,
}
);
Thanks!sparse-dog-88757
06/24/2021, 4:50 PMdamp-school-17708
06/25/2021, 1:02 PM* Error creating Cloudwatch log subscription filter: ResourceNotFoundException: The specified log group does not exist.
We basically have a CW log subscription filter, which subscribes to a CW log, this is all on a lambda, when we create the lambda+log+subscription for the first time (before any invocation of the lambda) it always fails.
It's nothing too fancy, code is here:
const logGroup = new aws.cloudwatch.LogGroup(`log-group-${functionName}`, {
name: `/aws/lambda/${functionName}`,
retentionInDays: 30,
tags,
})
new aws.cloudwatch.LogSubscriptionFilter(`log-sub-${functionName}`, {
name: `log-sub-${functionName}`,
logGroup: logGroup,
filterPattern: '',
destinationArn: `arn:aws:lambda:${region}:998119384210:function:datadog-ForwarderStack-C97LY7AXPME-Forwarder-1I6FZ9UCEMET2`,
})
Once you invoke the function then the filter works, everything is finerefined-toothbrush-89205
06/25/2021, 5:05 PMwhile waiting for function (*****) update: ResourceNotReady: exceeded wait attempts
, i presume this is an IAM permission issue with some new polling call (can reproduce if use CD creds locally) that has been introduced as it works just fine with my personal credentials (root) locally, but it is hard to debug this issue as I don't seem to get any useful output doing pulumi up -v=9 -p 1 --yes
best-lifeguard-91445
06/25/2021, 5:33 PMawsx/ec2/metrics.ts
there is a comment regarding AutoScalingGroupName as an option to provide as a dimension. However, It doesn't look the metric() function actually sets the Property. Is this intended? I'm trying to create a CPU Utilization metric for ASG instances.flat-appointment-12338
06/25/2021, 8:53 PMaws.secretsmanager.Secret
and then use this secret in the environment
for a Container
but I am not sure how to achieve this as the aws.ecs.Secret.valueFrom
property only accepts a string rather than an Input
\`Output` - is there a way to resolve the ARN output from the secret I created so that I may pass it into valueFrom
?breezy-lunch-69325
06/27/2021, 12:52 AMwhite-action-27798
06/27/2021, 11:14 AMechoing-zebra-28421
06/27/2021, 11:52 PMError reading file 'infra/package.json' when computing package dependencies. Error: ENOENT: no such file or directory, open '/infra/package.json'
My dir:
- project
...
- infra
- Pulumi.yaml
- tsconfig.json
...
- src
...
- package.json
- tsconfig.json
I need to have the package.json at that place in my directory.
Any help or alternatives to solve the problem will be welcome.
I'm using @pulumi/pulumi: "^3.4.0"
this error occurs when i run pulumi preview --cwd infra
 I run that command in the root of my project.
the problem occurs when I try to use  aws.lambda.CallbackFunction
alert-cartoon-12389
06/28/2021, 7:40 AMgreat-sunset-355
06/28/2021, 2:04 PMpath
in User resource? https://www.pulumi.com/docs/reference/pkg/aws/iam/user/#path_pythongreat-sunset-355
06/28/2021, 2:36 PMsmtp_user = iam.User("smtp-user")
access_key = iam.AccessKey("smtp-user-accesskey", user=smtp_user)
pulumi.export("smtp-secret", access_key.encrypted_secret.ses_smtp_password_v4)
but it results in
AttributeError: 'NoneType' object has no attribute 'ses_smtp_password_v4'
`
purple-appointment-84502
06/29/2021, 2:19 AMgatewayId : undefined => ""
I'm using the automation api and the expect_no_changes
flag which causes an error. Any idea what causes these properties changes?
Thanks!millions-furniture-75402
06/29/2021, 12:35 PMLogMetricFilter
, e.g.
const yada = new aws.cloudwatch.LogMetricFilter("yada", {
pattern: "",
logGroupName: dada.name,
metricTransformation: {
name: "EventCount",
namespace: "YourNamespace",
value: "1",
},
});
How do I create a cloudwatch alarm with this? With regular metrics, I can use awsx an .createAlarm()
but even falling back to the aws
package for the LogMetricFilter
it’s unclear to me. https://www.pulumi.com/docs/reference/pkg/aws/cloudwatch/metricalarm/sparse-dog-88757
06/29/2021, 4:10 PMbright-sandwich-93783
06/30/2021, 12:56 AMbright-sandwich-93783
06/30/2021, 12:59 AM