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

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"
}