Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
NOC
Iac
Commits
360e4b65
Verified
Commit
360e4b65
authored
Jan 15, 2022
by
n3ph
Browse files
Add S3 bucket for terraform remote state
Signed-off-by:
Michael Gerlach
<
n3ph@cccfr.de
>
parent
5b938ee4
Changes
2
Hide whitespace changes
Inline
Side-by-side
main
.tf
→
provider
.tf
View file @
360e4b65
...
...
@@ -11,3 +11,8 @@ terraform {
provider
"aws"
{
region
=
"eu-west-1"
}
provider
"aws"
{
region
=
"eu-central-1"
alias
=
"replica"
}
s3_tfstate.tf
0 → 100644
View file @
360e4b65
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
}
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment