Skip to content

Commit

Permalink
feat: add platform config
Browse files Browse the repository at this point in the history
  • Loading branch information
brunordias committed Oct 11, 2022
1 parent a4ca9cc commit 9b39837
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 1 deletion.
3 changes: 2 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ To use Bitbucket as VCS it is necessary to use OAuth for authentication. https:/

| Name | Version |
|------|---------|
| <a name="provider_aws"></a> [aws](#provider\_aws) | 4.33.0 |
| <a name="provider_aws"></a> [aws](#provider\_aws) | >= 3.74.0 |

## Modules

Expand Down Expand Up @@ -128,6 +128,7 @@ To use Bitbucket as VCS it is necessary to use OAuth for authentication. https:/
| <a name="input_enable_branch_auto_build"></a> [enable\_branch\_auto\_build](#input\_enable\_branch\_auto\_build) | Enables auto-building of branches for the Amplify App. | `bool` | `true` | no |
| <a name="input_name"></a> [name](#input\_name) | The name for an Amplify app. | `string` | n/a | yes |
| <a name="input_oauth_token"></a> [oauth\_token](#input\_oauth\_token) | The OAuth token for a third-party source control system for an Amplify app. | `string` | `null` | no |
| <a name="input_platform"></a> [platform](#input\_platform) | Platform or framework for an Amplify app. Valid values: WEB or WEB\_DYNAMIC | `string` | `"WEB"` | no |
| <a name="input_repository"></a> [repository](#input\_repository) | The repository for an Amplify app. | `string` | `""` | no |
| <a name="input_service_role"></a> [service\_role](#input\_service\_role) | Creates IAM Service Role for an Amplify app. | `bool` | `false` | no |
| <a name="input_tags"></a> [tags](#input\_tags) | A mapping of tags to assign to all resources. | `map(any)` | `{}` | no |
Expand Down
1 change: 1 addition & 0 deletions main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ resource "aws_amplify_app" "this" {
build_spec = var.build_spec
environment_variables = var.app_environment
iam_service_role_arn = var.service_role == true ? aws_iam_role.this.0.arn : null
platform = var.platform
tags = var.tags

enable_basic_auth = var.enable_basic_auth
Expand Down
6 changes: 6 additions & 0 deletions variables.tf
Original file line number Diff line number Diff line change
Expand Up @@ -92,3 +92,9 @@ variable "service_role" {
default = false
description = "Creates IAM Service Role for an Amplify app."
}

variable "platform" {
type = string
default = "WEB"
description = "Platform or framework for an Amplify app. Valid values: WEB or WEB_DYNAMIC"
}

0 comments on commit 9b39837

Please sign in to comment.