damp-school-17708
06/30/2021, 8:05 AMgentle-monitor-55086
06/30/2021, 4:31 PMstrong-plastic-28250
07/01/2021, 5:10 PMripe-shampoo-80285
07/01/2021, 10:52 PMearly-monitor-45939
07/01/2021, 11:03 PMpulumi up
automatically changes it to 2 for desiredSize, 1 for minSize and 1 for maxSize
On proceeding, I obviously get the error that the resource couldn’t be created because desiredSize should be between minSize and maxSize
I am using Python libraries for pulumi to do this.
Can someone please help?cold-yacht-45876
07/02/2021, 12:42 AMfierce-camera-61577
07/02/2021, 3:29 AMfierce-camera-61577
07/02/2021, 3:31 AMaws.dynamodb.Table
and a pulumi.cloud.API
(which makes an AWS lambda)happy-angle-19851
07/02/2021, 5:29 AMerror: aws:eks/cluster:Cluster resource 'ekstoby' has a problem: Computed attributes cannot be set: Computed attributes cannot be set, but a value was set for "vpc_config.0.cluster_security_group_id".. Examine values at 'Cluster.VpcConfig.ClusterSecurityGroupId'.
error: aws:eks/cluster:Cluster resource 'ekstoby' has a problem: Computed attributes cannot be set: Computed attributes cannot be set, but a value was set for "vpc_config.0.vpc_id".. Examine values at 'Cluster.VpcConfig.VpcId'.
error: Preview failed: one or more inputs failed to validate
happy-angle-19851
07/02/2021, 5:30 AMtall-beard-99429
07/02/2021, 8:33 AMaws:eks:Cluster (jobilla-eks-ci):
error: aws:eks/cluster:Cluster resource 'jobilla-eks-ci' has a problem: Computed attributes cannot be set: Computed attributes cannot be set, but a value was set for "vpc_config.0.vpc_id".. Examine values at 'Cluster.VpcConfig.VpcId'.
error: aws:eks/cluster:Cluster resource 'jobilla-eks-ci' has a problem: Computed attributes cannot be set: Computed attributes cannot be set, but a value was set for "vpc_config.0.cluster_security_group_id".. Examine values at 'Cluster.VpcConfig.ClusterSecurityGroupId'.
error: Preview failed: one or more inputs failed to validate
damp-school-17708
07/02/2021, 3:42 PMcontainerProperties: pulumi.interpolate`{
"command": ["yarn", "start"],
"jobRoleArn": "${ecsTaskExecutionRole.arn}",
"environment": [
{"name": "POSTGRES_ARN", "value": "${cluster.arn}"},
{"name": "REGION", "value": "${region}"},
{"name": "SECRET_ARN", "value": "${secret.arn}"}
],
"image": "${image}",
"fargatePlatformConfiguration": {
"platformVersion": "LATEST"
},
"networkConfiguration": {
"assignPublicIp": "ENABLED"
},
"resourceRequirements": [
{"type": "VCPU", "value": "0.25"},
{"type": "MEMORY", "value": "512"}
],
"executionRoleArn": "${ecsTaskExecutionRole.arn}"
}`,
Perhaps I should have read the aws batch manual but types here would really be helpful ... 🤔 instead of a slab of text...bumpy-businessperson-79451
07/02/2021, 5:38 PMcurved-pharmacist-41509
07/05/2021, 8:41 AM@pulumi/aws
v4.10 we have got. Any ideas?
aws:elasticache:ReplicationGroup (news-shared-branch-deploys):
error: aws:elasticache/replicationGroup:ReplicationGroup resource 'news-shared-branch-deploys' has a problem: engine_version: Redis versions must match <major>.x when using version 6 or higher, or <major>.<minor>.<bug-fix>. Examine values at 'ReplicationGroup.EngineVersion'.
Here is the code
const redisResource = new Redis(
prefix,
{
engine: 'redis',
engineVersion: '6.x',
AZs: privateAZs,
subnetIds: privateSubnetIds,
securityGroups: [
securityGroups.redisSecurityGroup.id,
securityGroups.essentialIcmpSecurityGroup.id,
],
vpcId,
},
{
provider: deploymentProvider,
awsRegion: 'ap-southeast-2',
awsRole: getRoleArnToAssume(),
},
)
adamant-translator-31969
07/05/2021, 7:24 PMpulumi import aws:ec2/routeTableAssociation:RouteTableAssociation assoc subnet-6777656e646f6c796e/rtb-656c65616e6f72
, next message appears:
error: aws:ec2/routeTableAssociation:RouteTableAssociation resource 'myasoci' has a problem: ExactlyOne: "gateway_id": one of `gateway_id,subnet_id` must be specified. Examine values at 'RouteTableAssociation.GatewayId'.
error: aws:ec2/routeTableAssociation:RouteTableAssociation resource 'myasoci' has a problem: ExactlyOne: "subnet_id": one of `gateway_id,subnet_id` must be specified. Examine values at 'RouteTableAssociation.SubnetId'.
error: Preview failed: one or more inputs failed to validate
victorious-sugar-42620
07/05/2021, 9:41 PMdamp-school-17708
07/06/2021, 10:12 AMbroad-hairdresser-1495
07/06/2021, 3:31 PMtry:
tmp_vpc = aws.ec2.get_vpc(cidr_block=resource["IPV4"], filters=[{'Name': 'tag:Name', 'Values': [resource["name"]]}])
except: # How do i except only one error when resource not found?
pass
except:
works fine but I would like to except only one error.
getting this, when not using except:
pulumi:pulumi:Stack (aws_project-simple):
error: Program failed with an unhandled exception:
error: Traceback (most recent call last):
File ".\CloudInfrastructure\AWS.py", line 57, in AWS_Cloud
tmp_vpc = aws.ec2.get_vpc(cidr_block=resource["IPV4"], filters=[{'Name': 'tag:Name', 'Values': [resource["name"]]}])
File "C:\Python\Python391\lib\site-packages\pulumi_aws\ec2\get_vpc.py", line 249, in get_vpc
__ret__ = pulumi.runtime.invoke('aws:ec2/getVpc:getVpc', __args__, opts=opts, typ=GetVpcResult).value
File "C:\Python\Python391\lib\site-packages\pulumi\runtime\invoke.py", line 144, in invoke
raise invoke_error
Exception: invoke of aws:ec2/getVpc:getVpc failed: invocation of aws:ec2/getVpc:getVpc returned an error: invoking aws:ec2/getVpc:getVpc: 1 error occurred:
* no matching VPC found
brainy-dawn-85792
07/06/2021, 5:22 PMeksCluster.Identities.ApplyT(func(identities []eks.ClusterIdentity) {
issuer := *identities[0].Oidcs[0].Issuer
fmt.Println("issuer:"+issuer)
_, err = iam.NewOpenIdConnectProvider(ctx, "oidc-provider", &iam.OpenIdConnectProviderArgs{
ClientIdLists: pulumi.StringArray{pulumi.String("<http://sts.amazonaws.com|sts.amazonaws.com>")},
ThumbprintLists: pulumi.StringArray{pulumi.String("9e99a48a9960b14926bb7f3b02e22da2b0ab7280")},
Url: pulumi.String(issuer),
}, nil)
if err != nil {
fmt.Printf("error: %s\n", err.Error())
}
})
But I have no idea how to associate the newly created provider with my cluster. Any help would be highly appreciated.microscopic-orange-69417
07/06/2021, 6:11 PMbrash-wall-70218
07/06/2021, 6:17 PM~ ebsBlockDevices: [
~ [0]: {
~ deleteOnTermination: true => true
~ deviceName : "/dev/sda1" => "/dev/sda1"
}
]
This leads to us having to manually go in and set up the instance each time.red-application-13595
07/06/2021, 7:19 PMfull-artist-27215
07/06/2021, 8:15 PMpulumi.Archive
? Alternatively, is there an existing pattern for expanding a zip/tarball archive into an S3 bucket? I have the assets of a website in a tarball and would like to decompress it into an S3 bucket that's serving our web content (that is, I do not want to simply upload the tarball as a single bucket object). Thanks in advance 🙇victorious-megabyte-32350
07/06/2021, 9:02 PMpoint in time recovery
with dynamoDB.
I created a script to recreate a table using the aws-cli, but pulumi doesn't know the creation of the table. If I added into the code the new table, it will try to create the table and the only thing I need to do is to enable the point in time recovery
.
Can anybody help me with this?polite-continent-12996
07/07/2021, 2:46 AMdamp-school-17708
07/07/2021, 12:37 PMerror: could not query backend for stacks: error listing stacks: could not list bucket: blob (code=Unknown): BucketRegionError: incorrect region, the bucket is not in 'us-west-1' region at endpoint ''
status code: 301, request id: , host id:
if I do
aws s3 ls <s3://bucket-for-pulumi-state>
I get the content.
No idea why this is happening, the box is in a different region/vpc but it should just work, and the basic aws s3 api shows the pulumi bucket just finealert-raincoat-81485
07/07/2021, 9:18 PMpulumi stack ls
stored in s3, i can see the stack json exist in the s3 stacks but can’t list it out. I am unable to do any operations on the stack since i am not able to list or select. Any suggestions?gray-belgium-81846
07/08/2021, 4:46 PMsparse-dog-88757
07/08/2021, 10:07 PMInvalidParameterCombination: You can't restore to aurora from an S3 backup of aurora. status code: 400
astonishing-dinner-89046
07/08/2021, 11:10 PM# Create RDS Postgres instance
postgresql_primary = aws.rds.Instance("rds_primary",
identifier="test",
instance_class="db.t3.micro",
#allow_major_version_upgrade=True,
auto_minor_version_upgrade=True,
engine="postgres",
engine_version=10.16,