Unable to update security group rule across regions #6324
Labels
documentation
Introduces or discusses updates to documentation.
service/ec2
Issues and PRs that pertain to the ec2 service.
This issue was originally opened by @jayudhandha as hashicorp/terraform#19246. It was migrated here as a result of the provider split. The original body of the issue is below.
Terraform Version
I am trying to update the rule of security group which is in another region (Ireland) after deploying my current security group (Ohio).
Below is my code snippet:
I am getting cercular dependency like below.
Case 1: Run above code, Getting error that
test1_access_test2
security group does not exist.Case 2: Run above code without
provider = "aws.TestApp"
inaws_security_group_rule
, Getting error thattest_sg
security group does not exist.Case 3: Run above code without
provider = "aws.TestApp"
indata "aws_security_group" "test_sg"
, Getting error thattest_sg
security group does not exist.I am not sure this is 100% issue of inter region communication but it seems like this is the case.
Note: The above error is coming while running
terraform apply
. Plan is showing correct change without any error.Any help will be highly appreciated.
Thanks!
The text was updated successfully, but these errors were encountered: