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
59527e77
Commit
59527e77
authored
Jan 15, 2022
by
malf
Browse files
add bucket
parent
360e4b65
Changes
3
Hide whitespace changes
Inline
Side-by-side
.gitignore
View file @
59527e77
.terraform*
terraform.tfstate
terraform.tfstate
*
provider.tf
View file @
59527e77
terraform
{
backend
"s3"
{
bucket
=
"tf-remote-state20220115042958249700000002"
key
=
"bootstrap"
region
=
"eu-west-1"
}
required_providers
{
aws
=
{
source
=
"hashicorp/aws"
...
...
s3_tfstate.tf
View file @
59527e77
...
...
@@ -7,7 +7,17 @@ module "remote_state" {
}
}
resource
"aws_iam_user_policy_attachment"
"remote_state_access"
{
user
=
module
.
iam_user_n3ph
.
iam_user_
arn
resource
"aws_iam_user_policy_attachment"
"remote_state_access
_n3ph
"
{
user
=
module
.
iam_user_n3ph
.
iam_user_
name
policy_arn
=
module
.
remote_state
.
terraform_iam_policy
.
arn
}
data
"aws_iam_user"
"terraform"
{
user_name
=
"terraform-malfn3ph"
}
resource
"aws_iam_user_policy_attachment"
"remote_state_access_terraform"
{
user
=
data
.
aws_iam_user
.
terraform
.
user_name
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