aws policy
This commit is contained in:
parent
06950b2c84
commit
333bb608f2
1 changed files with 12 additions and 0 deletions
12
project7/base.tf
Normal file
12
project7/base.tf
Normal 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"
|
||||||
|
}
|
Loading…
Reference in a new issue