Skip to content

Commit be7073a

Browse files
authored
Merge pull request #2 from robingoth/main
remove provider.tf
2 parents b75b03d + e799c1d commit be7073a

11 files changed

+12
-35
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 = {

modules/lambda/lambda.tf

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
locals {
2-
runtime = "nodejs14.x"
3-
lambda_handler = "handler.app"
4-
lambda_source_code_zip_path = "${path.module}/source_code/${var.integration_type}/app.zip"
2+
runtime = "nodejs14.x"
3+
lambda_handler = "handler.app"
4+
lambda_source_code_zip_path = "${path.module}/source_code/${var.integration_type}/app.zip"
55
}
66

77
resource "aws_lambda_function" "spectral_scanner_lambda" {

providers.tf

Lines changed: 0 additions & 4 deletions
This file was deleted.

variables.tf

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,5 @@
11
# General variables
22

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-
133
variable "integration_type" {
144
type = string
155
description = "Spectral integration type (A unique phrase describing the integration) - Available values: `terraform`."

0 commit comments

Comments
 (0)