Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

User isn't allowed to create CloudFormation Stack #4

Open
thomelane opened this issue Jul 28, 2020 · 1 comment
Open

User isn't allowed to create CloudFormation Stack #4

thomelane opened this issue Jul 28, 2020 · 1 comment

Comments

@thomelane
Copy link
Contributor

No description provided.

@thomelane
Copy link
Contributor Author

User should have permission to create/delete stack and all the resources.

Using IAM, the following IAM Policy can be defined and then assigned to the user. It is minimal in terms of actions, but it is open in terms of resource.

{
    "Version": "2012-10-17",
    "Statement": [
        {
            "Effect": "Allow",
            "Action": [
                "cloudformation:CreateStack",
                "cloudformation:DeleteStack"
            ],
            "Resource": "*"
        },
        {
            "Effect": "Allow",
            "Action": [
                "ecr:CreateRepository",
                "ecr:DeleteRepository"
            ],
            "Resource": "*"
        },
        {
            "Effect": "Allow",
            "Action": [
                "glue:CreateWorkflow",
                "glue:CreateTrigger",
                "glue:CreateJob",
                "glue:CreateDatabase",
                "glue:CreateCrawler",
                "glue:CreateClassifier",
                "glue:DeleteWorkflow",
                "glue:DeleteTrigger",
                "glue:DeleteJob",
                "glue:DeleteDatabase",
                "glue:DeleteCrawler",
                "glue:DeleteClassifier"
            ],
            "Resource": "*"
        },
        {
            "Effect": "Allow",
            "Action": [
                "iam:PutRolePolicy",
                "iam:DetachRolePolicy",
                "iam:DeleteRole",
                "iam:CreateRole",
                "iam:AttachRolePolicy"
            ],
            "Resource": "*"
        },
        {
            "Effect": "Allow",
            "Action": [
                "lambda:DeleteFunction",
                "lambda:CreateFunction"
            ],
            "Resource": "*"
        },
        {
            "Effect": "Allow",
            "Action": [
                "s3:PutBucketPublicAccessBlock",
                "s3:PutBucketEncryption",
                "s3:CreateBucket"
            ],
            "Resource": "*"
        },
        {
            "Effect": "Allow",
            "Action": [
                "sagemaker:StopNotebookInstance",
                "sagemaker:DeleteNotebookInstance",
                "sagemaker:CreateNotebookInstanceLifecycleConfig",
                "sagemaker:CreateNotebookInstance"
            ],
            "Resource": "*"
        }
    ]
}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant