1
0
Fork 0

aws policy

This commit is contained in:
Cedric Girard 2020-05-13 14:25:34 +02:00
parent 06950b2c84
commit 333bb608f2
Signed by: X-dark
GPG Key ID: E7D0E125DB9519E4
1 changed files with 12 additions and 0 deletions

12
project7/base.tf Normal file
View File

@ -0,0 +1,12 @@
provider "aws" {
region = "eu-west-2"
}
resource "aws_iam_user" "user1" {
name = "cedric-user1"
}
resource "aws_iam_user_policy_attachment" "policy-user1" {
user = aws_iam_user.user1.name
policy_arn = "arn:aws:iam::aws:policy/AdministratorAccess"
}