Skip to content

Commit

Permalink
Merge branch 'master' of github.e.it.census.gov:terraform-modules/aws…
Browse files Browse the repository at this point in the history
…-inf-setup into tf-upgrade
  • Loading branch information
badra001 committed May 24, 2022
2 parents 8844498 + 1b1eac8 commit 2f2c368
Show file tree
Hide file tree
Showing 2 changed files with 69 additions and 0 deletions.
28 changes: 28 additions & 0 deletions billing-role/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
## Requirements

No requirements.

## Providers

| Name | Version |
|------|---------|
| <a name="provider_aws"></a> [aws](#provider\_aws) | n/a |

## Modules

No modules.

## Resources

| Name | Type |
|------|------|
| [aws_iam_policy_document.full_billing](https://registry.terraform.io/providers/hashicorp/aws/latest/docs/data-sources/iam_policy_document) | data source |
| [aws_iam_policy_document.limited_billing](https://registry.terraform.io/providers/hashicorp/aws/latest/docs/data-sources/iam_policy_document) | data source |

## Inputs

No inputs.

## Outputs

No outputs.
41 changes: 41 additions & 0 deletions billing-role/policy.tf
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
data "aws_iam_policy_document" "full_billing" {
statement {
sid = "FullBillingAccess"
effect = "Allow"
resources = ["*"]

actions = [
"aws-portal:View*",
"ce:Describe*",
"ce:Get*",
"ce:List*",
"ce:CreateNotificationSubscription",
"ce:CreateReport",
"ce:DeleteNotificationSubscription",
"ce:DeleteReport",
"ce:UpdateNotificationSubscription",
"ce:UpdateReport",
"ce:UpdatePreferences",
"budgets:View*",
"budgets:Describe*",
#"budgets:*",
# add others, to allow cost explorer and budgets
]
}
}

data "aws_iam_policy_document" "limited_billing" {
statement {
sid = "LimitedBillingAccess"
effect = "Allow"
resources = ["*"]

actions = [
"aws-portal:View*",
"ce:Describe*",
"ce:Get*",
"ce:List*",
# put in right set of things for cost explorer and read access to billing
]
}
}

0 comments on commit 2f2c368

Please sign in to comment.