Skip to content
This repository has been archived by the owner on Feb 12, 2024. It is now read-only.

Commit

Permalink
cleanup TF module
Browse files Browse the repository at this point in the history
  • Loading branch information
Puneeth-n committed Mar 18, 2021
1 parent 764222f commit 71f89f1
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 10 deletions.
3 changes: 1 addition & 2 deletions terraform_module/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,21 +6,20 @@ No requirements.

| Name | Version |
|------|---------|
| archive | n/a |
| aws | n/a |

## Inputs

| Name | Description | Type | Default | Required |
|------|-------------|------|---------|:--------:|
| region | AWS region | `string` | n/a | yes |
| api\_gateway\_name | Name of the API Gateway | `string` | `"all-checks-passed"` | no |
| api\_gateway\_stage | Name of the API Gateway stage | `string` | `"prod"` | no |
| domain\_settings | n/a | <pre>object({<br> enable = bool<br> domain_name = string<br> zone_id = string<br> certificate_arn = string<br> endpoint_type = string<br> security_policy = string<br> })</pre> | <pre>{<br> "certificate_arn": "",<br> "domain_name": "",<br> "enable": false,<br> "endpoint_type": "",<br> "security_policy": "",<br> "zone_id": ""<br>}</pre> | no |
| github\_token\_key | GitHub Personal Access Token (PAT) | `string` | `"/infrastructure/github/pat"` | no |
| github\_webhook\_secret | GitHub webhook secret | `string` | `"/infrastructure/github/all-checks-passed/webhook-secret"` | no |
| iam\_path | IAM path | `string` | `"/"` | no |
| ignore\_checks | CSV GitHub checks to ignore | `string` | `""` | no |
| region | AWS region | `string` | `"eu-west-1"` | no |
| tags | Tags for AWS resources | `map` | `{}` | no |

## Outputs
Expand Down
7 changes: 0 additions & 7 deletions terraform_module/main.tf
Original file line number Diff line number Diff line change
@@ -1,14 +1,7 @@
provider "aws" {
region = var.region
}

data "aws_kms_alias" "ssm" {
name = "alias/aws/ssm"
}

data "aws_region" "current" {}
data "aws_caller_identity" "current" {}

data "aws_ssm_parameter" "github_token_key" {
name = var.github_token_key
with_decryption = false
Expand Down
1 change: 0 additions & 1 deletion terraform_module/variables.tf
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,6 @@ variable "ignore_checks" {

variable "region" {
type = string
default = "eu-west-1"
description = "AWS region"
}

Expand Down

0 comments on commit 71f89f1

Please sign in to comment.