Skip to content

Instantly share code, notes, and snippets.

@mominosin

mominosin/peering_sleep.tf Secret

Created Aug 21, 2020
Embed
What would you like to do?
# 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.
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
You can’t perform that action at this time.