Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
1.1k views
in Technique[技术] by (71.8m points)

terraform - How to add another account to an SQS Queue

We have set up our terraform script to create an SQS for one account only.

There is demand add more accounts for the future.

I was wondering if anyone has a way of adding an account (quick fix) to this code without changing everything completely?

environment_override                = "enviorment_name"
enable_cross_account                = true
remote_aws_account                  = "*************"
encryption_key                      = ""
remote_account_roles                = [  "arn:aws:iam::*************:role/new_role ]

Where

remote_aws_account and remote_account_roles

I need to add another one of each

can you just put it beside the other account number and role?

Thanks

question from:https://stackoverflow.com/questions/66045627/how-to-add-another-account-to-an-sqs-queue

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Answer

0 votes
by (71.8m points)
Waitting for answers

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...