Skip to content

Instantly share code, notes, and snippets.

@mominosin
Created August 21, 2020 09:02
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mominosin/48fbaf8c73af75457dca60146a04711d to your computer and use it in GitHub Desktop.
Save mominosin/48fbaf8c73af75457dca60146a04711d to your computer and use it in GitHub Desktop.
# 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