microscopic-animal-41955
08/10/2021, 5:54 PMmysterious-wolf-74677
08/10/2021, 7:51 PMpulumi import
on a lambda function, but I keep getting the following error:
Preview failed: diffing urn:pulumi:local_test_stack::foobarfoo::aws:lambda/function:Function::foo: handler and runtime must be set when PackageType is Zip
mysterious-wolf-74677
08/10/2021, 7:51 PMpolite-continent-12996
08/10/2021, 9:25 PMclean-diamond-27934
08/11/2021, 7:11 AMmicroscopic-orange-69417
08/11/2021, 4:35 PMripe-shampoo-80285
08/11/2021, 5:14 PMlimited-electrician-71574
08/11/2021, 7:55 PMrhythmic-fireman-45324
08/12/2021, 5:09 AMpulumi 3
, I keep getting the following error after running pulumi up
, even in a fresh aws-typescript
template………….
Type Name Plan Info
+ pulumi:pulumi:Stack playground-dev create
└─ aws:s3:Bucket newtestbucket 1 error
Diagnostics:
aws:s3:Bucket (newtestbucket):
error: could not validate provider configuration: 1 error occurred:
* Invalid or unknown key
My configs
// Pulumi.yaml
name: playground
runtime: nodejs
description: A minimal AWS TypeScript Pulumi program
template:
config:
aws:region:
description: The AWS region to deploy into
default: us-east-1
// Pulumi.dev.yaml
config:
aws:accesskey: ...
aws:region: us-east-1
aws:secretKey:
secure: ...
Anyone can give me some clues?rhythmic-fireman-45324
08/12/2021, 6:06 AMaccesskey
-> accessKey
rhythmic-fireman-45324
08/12/2021, 6:06 AMechoing-zebra-28421
08/12/2021, 10:15 PMerror: post-step event returned an error: failed to verify snapshot: child resource urn:pulumi:dev2::api-notifications::aws:sqs/queue:Queue$aws:sqs:QueueEventSubscription::mkt-sqs-event-report-dev2 refers to missing parent urn:pulumi:dev2::api-notifications::aws:sqs/queue:Queue::mkt-post-consultation-report-sqs-dev2
anyone know the cause of this error?echoing-zebra-28421
08/13/2021, 3:36 PMpulumi import aws:dynamodb/table:Table test-dev test-dev
Type Name Plan Info
pulumi:pulumi:Stack api-test-dev2 1 error
= └─ aws:dynamodb:Table test-dev import 1 error
Diagnostics:
aws:dynamodb:Table (test-dev):
error: Preview failed: diffing urn:pulumi:dev2::test::aws:dynamodb/table:Table::test-dev: 1 error occurred:
* all attributes must be indexed. Unused attributes: ["field1" "field2" "field3" "field4"]
pulumi:pulumi:Stack (test-dev2):
error: preview failed
do some research and I think this issue is related to what I want to do
Does anyone know how to resolve this issue?green-intern-27665
08/15/2021, 11:48 AMhttp
any idea how to change that to a https
?future-diamond-31373
08/18/2021, 8:16 PMimport Lambda from 'aws-sdk/clients/lambda';
import { captureAWSClient } from 'aws-xray-sdk-core';
const client = captureAWSClient(new Lambda());
However since our lambda functions are managed through pulumi, there isn’t an easy way to apply this wrapper. Or if there is, I’ve completely missed it.
I checked out the pulumi docs on the functiontracingconfig parameter, which gives me a high level trace (lambda execution time), but doesn’t go into the subcalls within the lambda like the capture client normally would.echoing-zebra-28421
08/19/2021, 2:46 PMerror: update failed
aws:dynamodb:Table (test-db-dev):
error: 1 error occurred:
thousands-area-40147
08/19/2021, 4:02 PM@pulumi/postgresql
to create a role on an Aurora postgresql database after its creation, much like shown in this blog post for mysql and an RDS instance (second example). Unfortunately, I have no luck and run into a timeout error:
postgresql:index:Role (<role name>):
error: could not start transaction: dial tcp xx.x.x.xxx:5432: connect: operation timed out
Found an issue on Github that seemed related, but wasn't able to derive a solution for my case from it.
This is the part of the program that is supposed to create the role:
this.postgresProvider = new postgresql.Provider('aurora-postgresql', {
expectedVersion: this.cluster.engineVersion,
host: this.cluster.endpoint,
password: this.password.result,
port: this.cluster.port,
username: this.cluster.masterUsername
}, {
parent: this.cluster
});
this.postgresUser = new postgresql.Role(<role name>, {
createDatabase: true,
createRole: true,
login: true,
name: <role name>,
roles: ['rds_iam']
}, {
parent: this.postgresProvider,
provider: this.postgresProvider
});
The instances on the cluster are set to not be publicly accessible, in case that has anything to do with it. Any help and pointers would be greatly appreciated! Cheers ✌️clean-diamond-27934
08/19/2021, 9:20 PMconst subnet_public = []
for (let it = 1; it <= 2; it++) {
subnet_public.push(new aws.ec2.Subnet(`${name}-public-${it}`, {
vpcId: vpc.id,
cidrBlock: `10.0.${2+it}.0/24`,
availabilityZone: azs.then(azs => azs.names[`${it}`]),
tags: {
'Name': `${name}-public-${it}`,
'<http://kubernetes.io/role/elb|kubernetes.io/role/elb>': '1',
[`<http://kubernetes.io/cluster/pulumi-${environment}`|kubernetes.io/cluster/pulumi-${environment}`>]: 'shared',
[`<http://kubernetes.io/cluster/pulumi-${environment}`|kubernetes.io/cluster/pulumi-${environment}`>]: 'shared',
},
}));
}
....
const publicRouteTableAssociation = new aws.ec2.RouteTableAssociation("publicRouteTableAssociation", {
routeTableId: publicRouteTable.id,
subnetId: pulumi.all(subnet_public[0,1]),
});
what is the proper way you may suggest of specifying - subnetId: pulumi.all(subnet_public[0,1])
Cheerssalmon-account-74572
08/19/2021, 11:14 PMstrong-sugar-31655
08/20/2021, 12:35 AMEventBusName/name
The problem I am having is that when I open the resource in aws it throws a validation error on the auto generated Id because presumably it contains a "/" .
Is there something I'm doing wrong or a limitation within pulumi?stocky-magazine-78486
08/20/2021, 1:18 AMambitious-afternoon-55254
08/20/2021, 7:17 PMARCHIVE
and DEEP_ARCHIVE
( https://docs.aws.amazon.com/AmazonS3/latest/API/API_PutBucketIntelligentTieringConfiguration.html )colossal-ice-49128
08/20/2021, 9:49 PMPulumi.us-Production
and Pulumi.eu-Production
right? The other way is to do it in code but I don’t think that fits nicely with the existing configuration model.purple-jelly-68780
08/21/2021, 10:25 PMcurved-pencil-86122
08/23/2021, 12:06 PMmillions-furniture-75402
08/23/2021, 12:57 PMpulumi.ouput(vpc.publicSubnetIds)[0]
would get the public subnet from the "first" AZ.acoustic-arm-10406
08/23/2021, 6:54 PMpulumi up
?
const lambdaAlias = new aws.lambda.Alias("DEV", {
functionName: routeKey + "DEV",
// functionVersion: "1", // how do I get this to pull from the current alias instead of overriding with "1" each time I pulumi up?
});
(side note, our devops is going to change the function version outside of this project when we canary deploy, so we don't want it overriding)salmon-account-74572
08/24/2021, 12:59 AMabundant-library-65373
08/24/2021, 6:28 AMthousands-art-36850
08/24/2021, 12:23 PM