Terrajinja extension for automation using cdktf
Project description
terrajinja-sbp-aws
This is an extension to the vault provider for the following modules. The original documentation can be found here
SBP Specific implementations
Here is a list of supported resources and their modifications
sbp.aws.iam_user_policy
Original provider: aws.iam_user_policy
This custom provider adds the following:
- automaticly convert data to json as input for the resource
old parameter | new parameter | description |
---|---|---|
policy | policy | the data field is automaticly converted to json |
terrajinja-cli example
the following is a code snipet you can used in a terrajinja-cli template file. This creates a s3 policy
terraform:
resources:
- task: "s3-policy"
module: sbp.aws.iam_user_policy
parameters:
name: "s3-policy"
user: "$s3-customer-user.name"
provider: '$aws-provider-cloudian'
policy:
Version: "2012-10-17"
Statement:
- Effect: "Allow"
Action:
- "s3:ListBucket"
- "s3:GetBucketLocation"
- "s3:ListBucketMultipartUploads"
Resource:
- "arn:aws:s3:::bucket-name"
- Effect: "Allow"
Action:
- "s3:PutObject"
- "s3:GetObject"
- "s3:DeleteObject"
- "s3:ListMultipartUploadParts"
- "s3:AbortMultipartUpload"
Resource:
- "arn:aws:s3:::bucket-name/*"
History
0.0.1 (14-03-2024)
- First code creation
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Close
Hashes for terrajinja_sbp_aws-0.1.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 00993ce565e006784aceec0caeac257103724a8ba332ab8984faba481d4b984f |
|
MD5 | cbbd5a43b7b9ef0b44cf93c0b3f62ee7 |
|
BLAKE2b-256 | c7c4523a6ee6c224c02cb24d7607e5864ad4c16c9066290f18071ba8e3b462fd |