Verified Commit 360e4b65 authored by n3ph's avatar n3ph
Browse files

Add S3 bucket for terraform remote state


Signed-off-by: n3ph's avatarMichael Gerlach <n3ph@cccfr.de>
parent 5b938ee4
......@@ -11,3 +11,8 @@ terraform {
provider "aws" {
region = "eu-west-1"
}
provider "aws" {
region = "eu-central-1"
alias = "replica"
}
module "remote_state" {
source = "nozaq/remote-state-s3-backend/aws"
providers = {
aws = aws
aws.replica = aws.replica
}
}
resource "aws_iam_user_policy_attachment" "remote_state_access" {
user = module.iam_user_n3ph.iam_user_arn
policy_arn = module.remote_state.terraform_iam_policy.arn
}
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment