limited-guitar-4572
01/10/2024, 8:48 PMsalmon-account-74572
01/10/2024, 10:15 PMignoreChanges
to those resources to see if that helps.salmon-account-74572
01/10/2024, 10:15 PMlimited-guitar-4572
01/11/2024, 2:28 PMsalmon-account-74572
01/11/2024, 3:41 PMlimited-guitar-4572
01/12/2024, 2:30 PMsalmon-account-74572
01/12/2024, 4:25 PMsubnetStrategy
of Legacy will fix your issue. If you’d like to try that (in a separate branch using pulumi preview
so as not to affect your provisioned resources), let me know if that fixes it.salmon-account-74572
01/12/2024, 4:25 PMlimited-guitar-4572
01/12/2024, 4:30 PMvpc = awsx.ec2.Vpc(
f"{cluster_config.name}-vpc",
enable_dns_hostnames=True,
availability_zone_names=availability_zone_names,
cidr_block=cluster_config.vpc_cidr_block,
subnet_strategy=awsx.ec2.SubnetAllocationStrategy("Legacy"),
subnet_specs=[
awsx.ec2.SubnetSpecArgs(
# name=f"private-subnet-{cluster_config.name}-vpc",
type=awsx.ec2.SubnetType.PRIVATE
),
awsx.ec2.SubnetSpecArgs(
# name=f"public-subnet-{cluster_config.name}-vpc",
type=awsx.ec2.SubnetType.PUBLIC
),
awsx.ec2.SubnetSpecArgs(
# name=f"rds-subnet-{cluster_config.name}-vpc",
type=awsx.ec2.SubnetType.ISOLATED,
name="rds",
tags={"Service": "RDS", "Cluster": cluster_config.name},
),
awsx.ec2.SubnetSpecArgs(
# name=f"elasticache-subnet-{cluster_config.name}-vpc",
type=awsx.ec2.SubnetType.ISOLATED,
name="elasticache",
tags={"Service": "ElastiCache", "Cluster": cluster_config.name},
),
],
tags={
"Name": f"VPC-{cluster_config.name}",
"Environment": cluster_config.environment,
"Client": "regard",
"Platform": "pulumi",
},
# opts=pulumi.ResourceOptions(transformations=[transformation])
)
salmon-account-74572
01/12/2024, 4:35 PMlimited-guitar-4572
01/12/2024, 4:38 PMlimited-guitar-4572
01/12/2024, 5:05 PMsalmon-account-74572
01/12/2024, 5:15 PMlimited-guitar-4572
01/12/2024, 5:23 PMminiature-rocket-28706
01/14/2024, 10:34 AMwarning: The default subnetStrategy will change from "Legacy" to "Auto" in the next major version. Please specify the subnetStrategy explicitly. The current subnet layout can be specified via "Auto" as:
I’ve set the subnetStratergy as auto but can’t seem to get rid of the warning:
code snippet:
{
numberOfAvailabilityZones: numberOfAzs,
cidrBlock: regionalCidrBlock,
description: workloadVpcDescription,
subnetStrategy: awsx.ec2.SubnetAllocationStrategy.Auto,
subnetSpecs: [
{
type: SubnetType.Public,
cidrMask: 24,
tags: {
Name: `${workloadVpcDescription}-public-subnet`,
Monitor: 'true',
Provisioned: 'Pulumi',
},
},
{
type: SubnetType.Private,
cidrMask: 24,
tags: {
Name: `${workloadVpcDescription}-workload-subnet`,
Monitor: 'true',
Provisioned: 'Pulumi',
},
},
{
type: SubnetType.Isolated,
cidrMask: 28,
tags: {
Name: `${workloadVpcDescription}-attachment-subnet`,
Monitor: 'true',
Provisioned: 'Pulumi',
},
},
],
natGateways: {
strategy: awsx.ec2.NatGatewayStrategy.OnePerAz,
},
tags: {
Name: workloadVpcDescription,
},
}
limited-guitar-4572
01/16/2024, 2:25 PMminiature-rocket-28706
01/16/2024, 2:26 PMlimited-guitar-4572
01/16/2024, 8:36 PMsalmon-account-74572
01/16/2024, 11:07 PM