/terraform-commercetools-custom-applications

Module to setup cloudfront, s3 and ssm for custom applications

Primary LanguageMakefileMIT LicenseMIT

terraform-commercetools-custom-applications

Module to setup cloudfront, s3 and ssm for custom applications

lint test Tag License

Providers

Name Version
aws >= 5

Requirements

Name Version
terraform ~> 1.3
aws >= 5

Required Inputs

The following input variables are required:

app_name

Description: application name

Type: string

bucket_name

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

Type: string

cdn_logging_bucket_name

Description: bucket where the cloudfront logs will be send to

Type: string

ssm_name_prefix

Description: prefix for the ssm path for each custom application

Type: string

aws_account_id

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

Type: string

applications

Description: map of custom applications to be setup

Type:

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):

tags

Description: Map of custom tags for the provisioned resources

Type: map(string)

Default: {}

Outputs

Name Description
s3_bucket_arn The ARN of the bucket. Will be of format arn:aws:s3:::bucketname.

License

MIT License

Copyright (c) 2023 Flaconi GmbH