-
-
Save mominosin/48fbaf8c73af75457dca60146a04711d to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 20秒待機する | |
resource time_sleep b_to_a { | |
create_duration = "20s" | |
triggers = { | |
peer = aws_vpc_peering_connection_accepter.b_to_a.id | |
} | |
} | |
# B側でリソースの設定変更する | |
resource aws_vpc_peering_connection_options b { | |
provider = aws.b | |
vpc_peering_connection_id = aws_vpc_peering_connection.a_to_b.id | |
accepter { | |
allow_remote_vpc_dns_resolution = true | |
} | |
depends_on = [ | |
time_sleep.b_to_a | |
] | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment