Skip to content
This repository has been archived by the owner on Jun 14, 2021. It is now read-only.

Commit

Permalink
fix config
Browse files Browse the repository at this point in the history
  • Loading branch information
vincentsarago committed Feb 25, 2019
1 parent 813ca4b commit 385f932
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 11 deletions.
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -72,5 +72,5 @@ target/
.python-version

# Terraform
.terraform
.terraform*
terraform.*
20 changes: 10 additions & 10 deletions remotepixel-tiler.tf
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ variable "project" {
default = "remotepixel-tiler"
}

variable "stage_name" {
variable "stage" {
description = "The stage name(production/staging/etc..)"
default = "production"
}
Expand All @@ -17,7 +17,7 @@ module "landsat" {

# General options
project = "${var.project}"
stage_name = "${var.stage_name}"
stage_name = "${var.stage}"
region = "us-west-2"

# Lambda options
Expand Down Expand Up @@ -45,7 +45,7 @@ module "landsat" {
}
}

resource "aws_iam_role_policy" "permissions" {
resource "aws_iam_role_policy" "permissions-landsat" {
name = "${module.landsat.lambda_role}-bucket-permission"
role = "${module.landsat.lambda_role_id}"

Expand All @@ -71,7 +71,7 @@ module "cbers" {

# General options
project = "${var.project}"
stage_name = "${var.stage_name}"
stage_name = "${var.stage}"
region = "us-east-1"

# Lambda options
Expand Down Expand Up @@ -100,7 +100,7 @@ module "cbers" {
}
}

resource "aws_iam_role_policy" "permissions" {
resource "aws_iam_role_policy" "permissions-cbers" {
name = "${module.cbers.lambda_role}-bucket-permission"
role = "${module.cbers.lambda_role_id}"

Expand Down Expand Up @@ -129,7 +129,7 @@ module "sentinel" {

# General options
project = "${var.project}"
stage_name = "${var.stage_name}"
stage_name = "${var.stage}"
region = "eu-central-1"

# Lambda options
Expand Down Expand Up @@ -159,7 +159,7 @@ module "sentinel" {
}
}

resource "aws_iam_role_policy" "permissions" {
resource "aws_iam_role_policy" "permissions-sentinel" {
name = "${module.sentinel.lambda_role}-bucket-permission"
role = "${module.sentinel.lambda_role_id}"

Expand Down Expand Up @@ -188,7 +188,7 @@ module "cogeo" {

# General options
project = "${var.project}"
stage_name = "${var.stage_name}"
stage_name = "${var.stage}"
region = "us-east-1"

# Lambda options
Expand All @@ -197,7 +197,7 @@ module "cogeo" {
lambda_memory = 512
lambda_timeout = 5
lambda_package = "package.zip"
lambda_handler = "remotepixel_tiler.sentinel.APP"
lambda_handler = "remotepixel_tiler.cogeo.APP"

lambda_env = {
PYTHONWARNINGS = "ignore"
Expand All @@ -216,7 +216,7 @@ module "cogeo" {
}
}

resource "aws_iam_role_policy" "permissions" {
resource "aws_iam_role_policy" "permissions-cogeo" {
name = "${module.cogeo.lambda_role}-bucket-permission"
role = "${module.cogeo.lambda_role_id}"

Expand Down

0 comments on commit 385f932

Please sign in to comment.