1 Answer
- Newest
- Most votes
- Most comments
1
Hello.
Since the IPv6 CIDR block should be deleted after the subnet is deleted, the “DependsOn:” should be set as follows.
I think that by doing this, "VPCIpv6CidrBlock" will be deleted after "PublicIpv6SubnetA" and the error will disappear.
VPCIpv6CidrBlock:
Type: AWS::EC2::VPCCidrBlock
Properties:
VpcId: !Ref VPC
AmazonProvidedIpv6CidrBlock: true
# Sottorete IPV6-only, che sarà 'pubblica' grazie a rotte, e instradamenti,
# ancora da fare
PublicIpv6SubnetA:
DependsOn: VPCIpv6CidrBlock
Type: AWS::EC2::Subnet
Properties:
Ipv6Native: true
Ipv6CidrBlock: !Sub
- ${VpcPart}${SubnetPart}
- SubnetPart: 00::/64
VpcPart: !Select
- 0
- !Split
- 00::/56
- !Select
- 0
- !GetAtt VPC.Ipv6CidrBlocks
AvailabilityZone: !Select
- 0
- !GetAZs ""
VpcId: !Ref VPC
Tags:
- Key: Name
Value: Public IPV6 Subnet A
Relevant content
- asked 9 months ago
- Accepted Answerasked 3 months ago
- AWS OFFICIALUpdated 2 years ago
- AWS OFFICIALUpdated 2 years ago
- AWS OFFICIALUpdated a year ago