Skip to content

Commit ec0874a

Browse files
remove redundant variables, improve README
1 parent a28d05f commit ec0874a

9 files changed

+9
-30
lines changed

README.md

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -20,8 +20,6 @@ Terraform configuration used to create the required AWS resources for integratin
2020

2121
| Name | Description | Type | Default | Required |
2222
| ----------- | ----------- | ----------- | ----------- | ----------- |
23-
| `account_id` | AWS Account ID number of the account in which to manage resources. | `number` | N/A | Yes |
24-
| `aws_region` | The region in which to manage resources.| `string` | N/A | Yes |
2523
| `environment` | The target environment name for deployment | `string` | `prod` | No |
2624
| `integration_type` | Spectral integration type (A unique phrase describing the integration) - Available values: `terraform`, `jira` and `gitlab` | `string` | N/A | Yes |
2725
| [`env_vars`](#env_vars) | Extendable object contains all required environment variables required for the integration. | `map(string)` | N/A | No |
@@ -83,8 +81,6 @@ This variable holds a collection of tags grouped by key representing its target
8381
module "spectral_lambda_integration" {
8482
source = "github.com/SpectralOps/spectral-terraform-lambda-integration?ref=v1.0.2"
8583
86-
account_id = 111111111111
87-
aws_region = "us-east-1"
8884
environment = "prod"
8985
integration_type = "terraform"
9086
lambda_enable_logs = true
@@ -124,6 +120,15 @@ module "spectral_lambda_integration" {
124120
}
125121
```
126122

123+
Don't forget to configure your provider:
124+
```tcl
125+
provider "aws" {
126+
allowed_account_ids = ["11111111111"]
127+
region = "us-east-1"
128+
profile = "example-profile"
129+
}
130+
```
131+
127132
## Resources
128133

129134
| Name | Type |

examples/basic-gitlab-integration.tf

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,6 @@
11
module "spectral_lambda_integration" {
22
source = "github.com/SpectralOps/spectral-terraform-lambda-integration"
33

4-
account_id = 111111111111
5-
aws_region = "us-east-1"
64
integration_type = "gitlab"
75

86
env_vars = {

examples/basic-jira-integration.tf

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,6 @@
11
module "spectral_lambda_integration" {
22
source = "github.com/SpectralOps/spectral-terraform-lambda-integration"
33

4-
account_id = 111111111111
5-
aws_region = "us-east-1"
64
integration_type = "jira"
75

86
env_vars = {

examples/basic-terraform-integration.tf

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,6 @@
11
module "spectral_lambda_integration" {
22
source = "github.com/SpectralOps/spectral-terraform-lambda-integration"
33

4-
account_id = 111111111111
5-
aws_region = "us-east-1"
64
integration_type = "terraform"
75

86
env_vars = {

examples/custom-lambda-settings.tf

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,6 @@
11
module "spectral_lambda_integration" {
22
source = "github.com/SpectralOps/spectral-terraform-lambda-integration"
33

4-
account_id = 111111111111
5-
aws_region = "us-east-1"
64
integration_type = "terraform"
75

86
lambda_function_timeout = 320

examples/enable-cloudwatch-logs-group.tf

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,6 @@
11
module "spectral_lambda_integration" {
22
source = "github.com/SpectralOps/spectral-terraform-lambda-integration"
33

4-
account_id = 111111111111
5-
aws_region = "us-east-1"
64
integration_type = "terraform"
75
lambda_enable_logs = true
86
lambda_logs_retention_in_days = 10

examples/extended-tags.tf

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,6 @@
11
module "spectral_lambda_integration" {
22
source = "github.com/SpectralOps/spectral-terraform-lambda-integration"
33

4-
account_id = 111111111111
5-
aws_region = "us-east-1"
64
integration_type = "terraform"
75

86
tags = {

examples/extra-env-vars.tf

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,6 @@
11
module "spectral_lambda_integration" {
22
source = "github.com/SpectralOps/spectral-terraform-lambda-integration"
33

4-
account_id = 111111111111
5-
aws_region = "us-east-1"
64
integration_type = "terraform"
75

86
env_vars = {

variables.tf

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,3 @@
1-
# General variables
2-
3-
variable "aws_region" {
4-
type = string
5-
description = "The region in which to manage resources."
6-
}
7-
8-
variable "account_id" {
9-
type = string
10-
description = "AWS Account ID number of the account in which to manage resources."
11-
}
12-
131
variable "integration_type" {
142
type = string
153
description = "Spectral integration type (A unique phrase describing the integration) - Available values: `terraform`."

0 commit comments

Comments
 (0)