An open API service indexing awesome lists of open source software.

https://github.com/flaconi/terraform-commercetools-custom-applications

Module to setup cloudfront, s3 and ssm for custom applications
https://github.com/flaconi/terraform-commercetools-custom-applications

aws commercetools flaconi-lite terraform terraform-module

Last synced: about 2 months ago
JSON representation

Module to setup cloudfront, s3 and ssm for custom applications

Awesome Lists containing this project

README

          

# terraform-commercetools-custom-applications
Module to setup cloudfront, s3 and ssm for custom applications

[![lint](https://github.com/flaconi/terraform-commercetools-custom-applications/workflows/lint/badge.svg)](https://github.com/flaconi/terraform-commercetools-custom-applications/actions?query=workflow%3Alint)
[![test](https://github.com/flaconi/terraform-commercetools-custom-applications/workflows/test/badge.svg)](https://github.com/flaconi/terraform-commercetools-custom-applications/actions?query=workflow%3Atest)
[![Tag](https://img.shields.io/github/tag/flaconi/terraform-commercetools-custom-applications.svg)](https://github.com/flaconi/terraform-commercetools-custom-applications/releases)
[![License](https://img.shields.io/badge/license-MIT-blue.svg)](https://opensource.org/licenses/MIT)

## Providers

| Name | Version |
|------|---------|
| [aws](#provider\_aws) | ~> 6.0 |

## Requirements

| Name | Version |
|------|---------|
| [terraform](#requirement\_terraform) | ~> 1.5 |
| [aws](#requirement\_aws) | ~> 6.0 |

## Required Inputs

The following input variables are required:

### [app\_name](#input\_app\_name)

Description: application name

Type: `string`

### [bucket\_name](#input\_bucket\_name)

Description: name of the bucket to used to upload the custom application

Type: `string`

### [cdn\_logging\_bucket\_name](#input\_cdn\_logging\_bucket\_name)

Description: bucket where the cloudfront logs will be send to

Type: `string`

### [ssm\_name\_prefix](#input\_ssm\_name\_prefix)

Description: prefix for the ssm path for each custom application

Type: `string`

### [aws\_account\_id](#input\_aws\_account\_id)

Description: aws account id used to build access policy for the cdn to s3

Type: `string`

### [applications](#input\_applications)

Description: map of custom applications to be setup

Type:

```hcl
map(object({
tags = optional(map(string), {})
application_id = string
additional_ssm_parameters = optional(list(object({
name = string
type = optional(string, "SecureString") # String, StringList or SecureString
value = string
})), [])
}))
```

## Optional Inputs

The following input variables are optional (have default values):

### [attach\_deny\_insecure\_transport\_policy](#input\_attach\_deny\_insecure\_transport\_policy)

Description: Controls if S3 bucket should have deny non-SSL transport policy attached

Type: `bool`

Default: `true`

### [tags](#input\_tags)

Description: Map of custom tags for the provisioned resources

Type: `map(string)`

Default: `{}`

## Outputs

| Name | Description |
|------|-------------|
| [s3\_bucket\_arn](#output\_s3\_bucket\_arn) | The ARN of the bucket. Will be of format arn:aws:s3:::bucketname. |

## License

**[MIT License](LICENSE)**

Copyright (c) 2023 **[Flaconi GmbH](https://github.com/flaconi)**