├── .gitignore ├── aws_iam_group.tf ├── aws_iam_group_membership.tf ├── aws_iam_policy_attachment.tf ├── aws_iam_user.tf ├── main.tf ├── modules └── kms │ ├── aws_iam_policy.tf │ ├── aws_iam_policy_document.tf │ ├── aws_kms_alias.tf │ ├── aws_kms_key.tf │ ├── kms_policy.json.tpl │ ├── output.tf │ ├── template_file.tf │ └── variable.tf └── provider.tf /.gitignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/minamijoyo/terraform-kms-example/HEAD/.gitignore -------------------------------------------------------------------------------- /aws_iam_group.tf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/minamijoyo/terraform-kms-example/HEAD/aws_iam_group.tf -------------------------------------------------------------------------------- /aws_iam_group_membership.tf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/minamijoyo/terraform-kms-example/HEAD/aws_iam_group_membership.tf -------------------------------------------------------------------------------- /aws_iam_policy_attachment.tf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/minamijoyo/terraform-kms-example/HEAD/aws_iam_policy_attachment.tf -------------------------------------------------------------------------------- /aws_iam_user.tf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/minamijoyo/terraform-kms-example/HEAD/aws_iam_user.tf -------------------------------------------------------------------------------- /main.tf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/minamijoyo/terraform-kms-example/HEAD/main.tf -------------------------------------------------------------------------------- /modules/kms/aws_iam_policy.tf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/minamijoyo/terraform-kms-example/HEAD/modules/kms/aws_iam_policy.tf -------------------------------------------------------------------------------- /modules/kms/aws_iam_policy_document.tf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/minamijoyo/terraform-kms-example/HEAD/modules/kms/aws_iam_policy_document.tf -------------------------------------------------------------------------------- /modules/kms/aws_kms_alias.tf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/minamijoyo/terraform-kms-example/HEAD/modules/kms/aws_kms_alias.tf -------------------------------------------------------------------------------- /modules/kms/aws_kms_key.tf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/minamijoyo/terraform-kms-example/HEAD/modules/kms/aws_kms_key.tf -------------------------------------------------------------------------------- /modules/kms/kms_policy.json.tpl: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/minamijoyo/terraform-kms-example/HEAD/modules/kms/kms_policy.json.tpl -------------------------------------------------------------------------------- /modules/kms/output.tf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/minamijoyo/terraform-kms-example/HEAD/modules/kms/output.tf -------------------------------------------------------------------------------- /modules/kms/template_file.tf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/minamijoyo/terraform-kms-example/HEAD/modules/kms/template_file.tf -------------------------------------------------------------------------------- /modules/kms/variable.tf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/minamijoyo/terraform-kms-example/HEAD/modules/kms/variable.tf -------------------------------------------------------------------------------- /provider.tf: -------------------------------------------------------------------------------- 1 | provider "aws" { 2 | region = "us-east-1" 3 | } 4 | --------------------------------------------------------------------------------