├── .gitignore ├── Gemfile ├── LICENSE.txt ├── README.md ├── bootstrap ├── locals.tf ├── policies │ ├── assume_roles │ │ ├── terraform_aws_permissions_generator_permissions_add_role.json.tpl │ │ └── terraform_aws_permissions_generator_role.json.tpl │ ├── terraform_aws_permissions_generator_permissions_add_policy.json.tpl │ └── user_policy.json.tpl ├── provider.tf ├── roles.tf ├── templates │ ├── aws_config.tpl │ └── aws_credentials.tpl ├── user.tf └── variables.tf ├── completed_policies └── .placeholder ├── generate ├── lib ├── generate.rb └── generate │ ├── errors.rb │ ├── generator.rb │ ├── helper.rb │ ├── log_parser.rb │ ├── logger.rb │ ├── policy_generator.rb │ └── terraform.rb ├── policy_modifier ├── locals.tf ├── policy.tf ├── provider.tf └── variables.tf └── test_resources ├── ec2_instance.tf ├── provider.tf └── variables.tf /.gitignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Stretch96/terraform-aws-permissions-generator/HEAD/.gitignore -------------------------------------------------------------------------------- /Gemfile: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Stretch96/terraform-aws-permissions-generator/HEAD/Gemfile -------------------------------------------------------------------------------- /LICENSE.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Stretch96/terraform-aws-permissions-generator/HEAD/LICENSE.txt -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Stretch96/terraform-aws-permissions-generator/HEAD/README.md -------------------------------------------------------------------------------- /bootstrap/locals.tf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Stretch96/terraform-aws-permissions-generator/HEAD/bootstrap/locals.tf -------------------------------------------------------------------------------- /bootstrap/policies/assume_roles/terraform_aws_permissions_generator_permissions_add_role.json.tpl: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Stretch96/terraform-aws-permissions-generator/HEAD/bootstrap/policies/assume_roles/terraform_aws_permissions_generator_permissions_add_role.json.tpl -------------------------------------------------------------------------------- /bootstrap/policies/assume_roles/terraform_aws_permissions_generator_role.json.tpl: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Stretch96/terraform-aws-permissions-generator/HEAD/bootstrap/policies/assume_roles/terraform_aws_permissions_generator_role.json.tpl -------------------------------------------------------------------------------- /bootstrap/policies/terraform_aws_permissions_generator_permissions_add_policy.json.tpl: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Stretch96/terraform-aws-permissions-generator/HEAD/bootstrap/policies/terraform_aws_permissions_generator_permissions_add_policy.json.tpl -------------------------------------------------------------------------------- /bootstrap/policies/user_policy.json.tpl: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Stretch96/terraform-aws-permissions-generator/HEAD/bootstrap/policies/user_policy.json.tpl -------------------------------------------------------------------------------- /bootstrap/provider.tf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Stretch96/terraform-aws-permissions-generator/HEAD/bootstrap/provider.tf -------------------------------------------------------------------------------- /bootstrap/roles.tf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Stretch96/terraform-aws-permissions-generator/HEAD/bootstrap/roles.tf -------------------------------------------------------------------------------- /bootstrap/templates/aws_config.tpl: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Stretch96/terraform-aws-permissions-generator/HEAD/bootstrap/templates/aws_config.tpl -------------------------------------------------------------------------------- /bootstrap/templates/aws_credentials.tpl: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Stretch96/terraform-aws-permissions-generator/HEAD/bootstrap/templates/aws_credentials.tpl -------------------------------------------------------------------------------- /bootstrap/user.tf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Stretch96/terraform-aws-permissions-generator/HEAD/bootstrap/user.tf -------------------------------------------------------------------------------- /bootstrap/variables.tf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Stretch96/terraform-aws-permissions-generator/HEAD/bootstrap/variables.tf -------------------------------------------------------------------------------- /completed_policies/.placeholder: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /generate: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Stretch96/terraform-aws-permissions-generator/HEAD/generate -------------------------------------------------------------------------------- /lib/generate.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Stretch96/terraform-aws-permissions-generator/HEAD/lib/generate.rb -------------------------------------------------------------------------------- /lib/generate/errors.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Stretch96/terraform-aws-permissions-generator/HEAD/lib/generate/errors.rb -------------------------------------------------------------------------------- /lib/generate/generator.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Stretch96/terraform-aws-permissions-generator/HEAD/lib/generate/generator.rb -------------------------------------------------------------------------------- /lib/generate/helper.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Stretch96/terraform-aws-permissions-generator/HEAD/lib/generate/helper.rb -------------------------------------------------------------------------------- /lib/generate/log_parser.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Stretch96/terraform-aws-permissions-generator/HEAD/lib/generate/log_parser.rb -------------------------------------------------------------------------------- /lib/generate/logger.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Stretch96/terraform-aws-permissions-generator/HEAD/lib/generate/logger.rb -------------------------------------------------------------------------------- /lib/generate/policy_generator.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Stretch96/terraform-aws-permissions-generator/HEAD/lib/generate/policy_generator.rb -------------------------------------------------------------------------------- /lib/generate/terraform.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Stretch96/terraform-aws-permissions-generator/HEAD/lib/generate/terraform.rb -------------------------------------------------------------------------------- /policy_modifier/locals.tf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Stretch96/terraform-aws-permissions-generator/HEAD/policy_modifier/locals.tf -------------------------------------------------------------------------------- /policy_modifier/policy.tf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Stretch96/terraform-aws-permissions-generator/HEAD/policy_modifier/policy.tf -------------------------------------------------------------------------------- /policy_modifier/provider.tf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Stretch96/terraform-aws-permissions-generator/HEAD/policy_modifier/provider.tf -------------------------------------------------------------------------------- /policy_modifier/variables.tf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Stretch96/terraform-aws-permissions-generator/HEAD/policy_modifier/variables.tf -------------------------------------------------------------------------------- /test_resources/ec2_instance.tf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Stretch96/terraform-aws-permissions-generator/HEAD/test_resources/ec2_instance.tf -------------------------------------------------------------------------------- /test_resources/provider.tf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Stretch96/terraform-aws-permissions-generator/HEAD/test_resources/provider.tf -------------------------------------------------------------------------------- /test_resources/variables.tf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Stretch96/terraform-aws-permissions-generator/HEAD/test_resources/variables.tf --------------------------------------------------------------------------------