All Projects → flosell → Iam Policy Json To Terraform

flosell / Iam Policy Json To Terraform

Licence: apache-2.0
Small tool to convert an IAM Policy in JSON format into a Terraform aws_iam_policy_document

Programming Languages

go
31211 projects - #10 most used programming language

Projects that are alternatives of or similar to Iam Policy Json To Terraform

Terraformer
CLI tool to generate terraform files from existing infrastructure (reverse Terraform). Infrastructure to Code
Stars: ✭ 6,316 (+2139.72%)
Mutual labels:  aws, terraform, hcl, infrastructure-as-code
Terraform Aws Cross Account Role
A Terraform module to create an IAM Role for Cross Account delegation.
Stars: ✭ 30 (-89.36%)
Mutual labels:  aws, terraform, hcl, iam
Aws
A collection of bash shell scripts for automating various tasks with Amazon Web Services using the AWS CLI and jq.
Stars: ✭ 493 (+74.82%)
Mutual labels:  aws, terraform, infrastructure-as-code, iam
Terraform Modules
Terraform Modules
Stars: ✭ 25 (-91.13%)
Mutual labels:  aws, terraform, hcl, infrastructure-as-code
Tfsec
Security scanner for your Terraform code
Stars: ✭ 3,622 (+1184.4%)
Mutual labels:  aws, hacktoberfest, terraform, infrastructure-as-code
Terratag
Terratag is a CLI tool that enables users of Terraform to automatically create and maintain tags across their entire set of AWS, Azure, and GCP resources
Stars: ✭ 385 (+36.52%)
Mutual labels:  aws, terraform, hcl, infrastructure-as-code
Checkov
Prevent cloud misconfigurations during build-time for Terraform, Cloudformation, Kubernetes, Serverless framework and other infrastructure-as-code-languages with Checkov by Bridgecrew.
Stars: ✭ 3,572 (+1166.67%)
Mutual labels:  aws, hacktoberfest, terraform, infrastructure-as-code
Terraform Aws Gitlab Runner
Terraform module for AWS GitLab runners on ec2 (spot) instances
Stars: ✭ 292 (+3.55%)
Mutual labels:  aws, terraform, hcl, infrastructure-as-code
Terraform Aws Asg
Terraform AWS Auto Scaling Stack
Stars: ✭ 58 (-79.43%)
Mutual labels:  aws, terraform, hcl, infrastructure-as-code
Karch
A Terraform module to create and maintain Kubernetes clusters on AWS easily, relying entirely on kops
Stars: ✭ 38 (-86.52%)
Mutual labels:  aws, terraform, hcl, infrastructure-as-code
Terraform Sqs Lambda Trigger Example
Example on how to create a AWS Lambda triggered by SQS in Terraform
Stars: ✭ 31 (-89.01%)
Mutual labels:  aws, terraform, hcl, infrastructure-as-code
Terraform
Terraform automation for Cloud
Stars: ✭ 121 (-57.09%)
Mutual labels:  aws, terraform, hcl, infrastructure-as-code
Terraform Aws Airflow
Terraform module to deploy an Apache Airflow cluster on AWS, backed by RDS PostgreSQL for metadata, S3 for logs and SQS as message broker with CeleryExecutor
Stars: ✭ 69 (-75.53%)
Mutual labels:  aws, hacktoberfest, terraform, hcl
Cluster.dev
Kubernetes-based Dev Environments with GitOps
Stars: ✭ 122 (-56.74%)
Mutual labels:  aws, hacktoberfest, terraform, infrastructure-as-code
Aws Labs
step by step guide for aws mini labs. Currently maintained on : https://github.com/Cloud-Yeti/aws-labs Youtube playlist for labs:
Stars: ✭ 153 (-45.74%)
Mutual labels:  aws, terraform, hcl
Terraform Aws Eks
Terraform module to create an Elastic Kubernetes (EKS) cluster and associated worker instances on AWS
Stars: ✭ 2,464 (+773.76%)
Mutual labels:  aws, terraform, hcl
Terraform Aws Devops
Info about many of my Terraform, AWS, and DevOps projects.
Stars: ✭ 159 (-43.62%)
Mutual labels:  aws, terraform, infrastructure-as-code
terraform-modules
Terraform Modules by Peak
Stars: ✭ 16 (-94.33%)
Mutual labels:  iam, hcl, infrastructure-as-code
Multiregion Terraform
Example multi-region AWS Terraform application
Stars: ✭ 149 (-47.16%)
Mutual labels:  aws, terraform, hcl
Terraform Aws Cloudfront S3 Cdn
Terraform module to easily provision CloudFront CDN backed by an S3 origin
Stars: ✭ 162 (-42.55%)
Mutual labels:  aws, terraform, hcl

iam-policy-json-to-terraform

Build StatusRelease

Small tool to convert an IAM Policy in JSON format into a Terraform aws_iam_policy_document

Installation

OSX

$ brew install iam-policy-json-to-terraform

Other

Download the latest binary from the releases page and put it into your PATH under the name iam-policy-json-to-terraform

Developer

If you're a go developer and have your GOPATH defined and have added your $GOPATH/bin directory to your path, you can simply run this command.

$ go get github.com/flosell/iam-policy-json-to-terraform

Usage

From raw JSON

$ echo '{"Statement":[{"Effect":"Allow","Action":["ec2:Describe*"],"Resource":"*"}]}' | iam-policy-json-to-terraform
data "aws_iam_policy_document" "policy" {
  statement {
    sid       = ""
    effect    = "Allow"
    resources = ["*"]
    actions   = ["ec2:Describe*"]
  }
}

From a JSON policy file

$ iam-policy-json-to-terraform < some-policy.json

Local development

Prerequisites

  • Clone the repository to a location of your choosing:

    $ git clone [email protected]:flosell/iam-policy-json-to-terraform.git
    
  • Install dependencies and tools:

    $ cd iam-policy-json-to-terraform
    $ make tools
    

Development

make is your primary point of entry for any development activity. Call it without arguments to learn more:

$ make
build                          Test and build the whole application
clean                          Remove build artifacts
fmt                            Format code
fmtcheck                       Run linter
test-readme                    Run the commands mentioned in the README for sanity-checking
test                           Run all tests
tools                          Install additional required tooling
Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].