Hey, any hints on how I can make changes to the su...
# aws
s
Hey, any hints on how I can make changes to the subnets created by default on my VPC? Have tried with aliases, however, pulumi still won't take the changes from the explicitly defined resources:
Copy code
export const vpc = new awsx.ec2.Vpc('vpc', {
  enableDnsHostnames: true,
  enableDnsSupport: true,
  assignGeneratedIpv6CidrBlock: true,
});

export const vpc_public_1 = new aws.ec2.Subnet(
  'vpc-public-1',
  {
    assignIpv6AddressOnCreation: true,
    availabilityZone: 'eu-west-1a',
    cidrBlock: 'x',
    enableDns64: true,
    enableResourceNameDnsAaaaRecordOnLaunch: true,
    ipv6CidrBlock: 'x',
    mapPublicIpOnLaunch: true,
    privateDnsHostnameTypeOnLaunch: 'ip-name',
    tags: {
      Name: 'vpc-public-1',
      SubnetType: 'Public',
    },
    vpcId: vpc.vpcId,
  },
  {
    protect: true,
    import: 'subnet-hashId',
    aliases: ['urn:pulumi:prod::aws-infra::awsx:ec2:Vpc$aws:ec2/vpc:Vpc$aws:ec2/subnet:Subnet::vpc-public-1'],
  },
);
f
ah, yeah, you're using awsx/crosswalk to set up the vpc; that's nice for getting started/sane defaults. if you need more control it might be best/easiest to switch to
aws.ec2.Vpc
👀 1
s
thank you!
high five 1