Metadata-Version: 2.1
Name: terrajinja-sbp-aws
Version: 0.2.0
Summary: Terrajinja extension for automation using cdktf
Home-page: https://gitlab/terrajinja
Author: Terrajinja Team
Author-email: int-terrajinja@schubergphilis.com
License: MIT
Classifier: Development Status :: 4 - Beta
Classifier: Intended Audience :: Developers
Classifier: License :: OSI Approved :: MIT License
Classifier: Natural Language :: English
Classifier: Programming Language :: Python :: 3.11
Description-Content-Type: text/markdown
License-File: LICENSE
Requires-Dist: cdktf-cdktf-provider-aws >=19.4.0
Requires-Dist: cdktf >=0.20.3

# terrajinja-sbp-aws

This is an extension to the vault provider for the following modules.
The original documentation can be found [here](https://registry.terraform.io/providers/hashicorp/aws/latest/docs)

# SBP Specific implementations
Here is a list of supported resources and their modifications

## sbp.aws.iam_user_policy
Original provider: [aws.iam_user_policy](https://registry.terraform.io/providers/hashicorp/aws/latest/docs/resources/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
