Skip to content

Instantly share code, notes, and snippets.

@gbernat
Created January 27, 2021 22:41
Show Gist options
  • Save gbernat/098f5818dae6e5b533da445a64436224 to your computer and use it in GitHub Desktop.
Save gbernat/098f5818dae6e5b533da445a64436224 to your computer and use it in GitHub Desktop.
terraform iam
resource "aws_iam_role_policy" "containment_and_forensics_policy" {
name = "containment_and_forensics_policy"
role = aws_iam_role.containment_and_forensics_role.id
policy = data.aws_iam_policy_document.containment_and_forensics_policy_document.json
}
resource "aws_iam_role" "containment_and_forensics_role" {
name = "containment_and_forensics_role"
assume_role_policy = data.aws_iam_policy_document.containment_and_forensics_assume_policy_document.json
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment