Commit 59527e77 authored by malf's avatar malf
Browse files

add bucket

parent 360e4b65
.terraform*
terraform.tfstate
terraform.tfstate*
terraform {
backend "s3" {
bucket = "tf-remote-state20220115042958249700000002"
key = "bootstrap"
region = "eu-west-1"
}
required_providers {
aws = {
source = "hashicorp/aws"
......
......@@ -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
}
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