https://github.com/flaconi/terraform-commercetools-api-client
https://github.com/flaconi/terraform-commercetools-api-client
aws commercetools terraform terraform-module
Last synced: about 1 month ago
JSON representation
- Host: GitHub
- URL: https://github.com/flaconi/terraform-commercetools-api-client
- Owner: Flaconi
- Created: 2020-08-19T11:56:05.000Z (almost 6 years ago)
- Default Branch: master
- Last Pushed: 2023-12-19T12:54:20.000Z (over 2 years ago)
- Last Synced: 2023-12-19T15:17:20.928Z (over 2 years ago)
- Topics: aws, commercetools, terraform, terraform-module
- Language: Makefile
- Homepage:
- Size: 25.4 KB
- Stars: 0
- Watchers: 13
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Codeowners: .github/CODEOWNERS
Awesome Lists containing this project
README
# Terraform Commercetools API client
[](https://github.com/flaconi/terraform-commercetools-api-client/actions?query=workflow%3Alint)
[](https://github.com/flaconi/terraform-commercetools-api-client/actions?query=workflow%3Atest)
[](https://github.com/flaconi/terraform-commercetools-api-client/releases)
This module will create commercetools client credentials and save them in SSM store.
## Providers
| Name | Version |
|------|---------|
| [aws](#provider\_aws) | >= 5.31 |
| [commercetools](#provider\_commercetools) | >= 1.18.0 |
## Requirements
| Name | Version |
|------|---------|
| [terraform](#requirement\_terraform) | >= 1.1 |
| [aws](#requirement\_aws) | >= 5.31 |
| [commercetools](#requirement\_commercetools) | >= 1.18.0 |
## Required Inputs
No required inputs.
## Optional Inputs
The following input variables are optional (have default values):
### [client\_id](#input\_client\_id)
Description: Commercetools API client id used to create a new client
Type: `string`
Default: `""`
### [client\_secret](#input\_client\_secret)
Description: Commercetools API client secret used to create a new client
Type: `string`
Default: `""`
### [client\_scopes](#input\_client\_scopes)
Description: Commercetools API client scopes used to create a new client
Type: `string`
Default: `""`
### [project\_key](#input\_project\_key)
Description: Commercetools project key used to create a new client
Type: `string`
Default: `""`
### [api\_url](#input\_api\_url)
Description: Commercetools API URL used to create a new client
Type: `string`
Default: `""`
### [token\_url](#input\_token\_url)
Description: Commercetools AUTH URL used to create a new client
Type: `string`
Default: `""`
### [client\_id\_ssm\_path](#input\_client\_id\_ssm\_path)
Description: SSM-path to Commercetools API client id used to create a new client
Type: `string`
Default: `""`
### [client\_secret\_ssm\_path](#input\_client\_secret\_ssm\_path)
Description: SSM-path to Commercetools API client secret used to create a new client
Type: `string`
Default: `""`
### [client\_scopes\_ssm\_path](#input\_client\_scopes\_ssm\_path)
Description: SSM-path to Commercetools API client scopes used to create a new client
Type: `string`
Default: `""`
### [project\_key\_ssm\_path](#input\_project\_key\_ssm\_path)
Description: SSM-path to Commercetools project key used to create a new client
Type: `string`
Default: `""`
### [api\_url\_ssm\_path](#input\_api\_url\_ssm\_path)
Description: SSM-path to Commercetools API URL used to create a new client
Type: `string`
Default: `""`
### [token\_url\_ssm\_path](#input\_token\_url\_ssm\_path)
Description: SSM-path to Commercetools AUTH URL used to create a new client
Type: `string`
Default: `""`
### [api\_clients](#input\_api\_clients)
Description: Map of API clients
Type:
```hcl
map(object({
name = string,
scope = set(string)
accessTokenValiditySeconds = optional(number, 0) # default is 2 days
refreshTokenValiditySeconds = optional(number, 0) # default is 200 days
}))
```
Default: `{}`
## Outputs
| Name | Description |
|------|-------------|
| [api\_clients](#output\_api\_clients) | Created API clients through terraform |
Copyright (c) 2023 **[Flaconi GmbH](https://github.com/flaconi)**