File tree Expand file tree Collapse file tree 4 files changed +13
-3
lines changed
terraform/account-wide-infrastructure Expand file tree Collapse file tree 4 files changed +13
-3
lines changed Original file line number Diff line number Diff line change @@ -10,7 +10,14 @@ provider "aws" {
1010 workspace = terraform.workspace
1111 }
1212 }
13+ }
14+
15+ provider "awscc" {
16+ region = local. region
1317
18+ assume_role = {
19+ role_arn = " arn:aws:iam::${ var . assume_account } :role/${ var . assume_role } "
20+ }
1421}
1522
1623terraform {
File renamed without changes.
Original file line number Diff line number Diff line change @@ -25,8 +25,11 @@ data "aws_iam_policy_document" "backup_key_policy" {
2525 statement {
2626 sid = " EnableIAMUserPermissions"
2727 principals {
28- type = " AWS"
29- identifiers = [" arn:aws:iam::${ data . aws_caller_identity . current . account_id } :root" , data . aws_caller_identity . current . arn ]
28+ type = " AWS"
29+ identifiers = [
30+ " arn:aws:iam::${ data . aws_caller_identity . current . account_id } :root" ,
31+ var . terraform_role_arn
32+ ]
3033 }
3134 actions = [" kms:*" ]
3235 resources = [" *" ]
Original file line number Diff line number Diff line change @@ -11,6 +11,6 @@ variable "enable_bucket_force_destroy" {
1111
1212variable "enable_backups" {
1313 type = bool
14- descirption = " enable AWS cloud backups"
14+ description = " enable AWS cloud backups"
1515 default = false
1616}
You can’t perform that action at this time.
0 commit comments