在线时间:8:00-16:00
迪恩网络APP
随时随地掌握行业动态
扫描二维码
关注迪恩网络微信公众号
开源软件名称:flosell/iam-policy-json-to-terraform开源软件地址:https://github.com/flosell/iam-policy-json-to-terraform开源编程语言:Go 31.9%开源软件介绍:iam-policy-json-to-terraformSmall tool to convert an IAM Policy in JSON format into a Terraform Web VersionCheck out a web version of the tool here. For command line usage and automation, check out the instructions below. InstallationOSX$ brew install iam-policy-json-to-terraform asdf$ asdf plugin add iam-policy-json-to-terraform https://github.com/carlduevel/asdf-iam-policy-json-to-terraform.git OtherDownload the latest binary from the releases page and put it into your DeveloperIf you're a go developer and have your $ go get github.com/flosell/iam-policy-json-to-terraform UsageFrom 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 If a video demo is more your thing, checkout this nice 2min introduction by the folks at env0. Local developmentPrerequisites
DevelopmentEntry point
$ make
build Test and build the whole application
clean Remove build artifacts
fmt Format code
fmtcheck Run linter
seccheck Run security checks
test Run all tests
test-readme Run the commands mentioned in the README for sanity-checking
tools Install additional required tooling
tools-main Install additional required tooling for the main version
tools-web Install additional required tooling for the web version
web-build Build the web version
web-deploy Deploy the web version to GitHub pages
web-e2e Run end to end tests for web version (requires web-build)
web-e2e-live Run end to end tests for web version in live mode for development (requires web-build)
web-serve Serve the web version on a local development server
web-visual-regression-approve Accept changes in Web UI visuals
web-visual-regression-test Test for changes in Web UI visuals Web DevelopmentTo develop the web-frontend, you'll need to first compile the JavaScript version of Currently, the complete web-frontend is plain HTML, JS and CSS, all within End-To-End Tests for the web frontend exist as TestCafe tests in |
2023-10-27
2022-08-15
2022-08-17
2022-09-23
2022-08-13
请发表评论