I hereby claim:
- I am stojce on github.
- I am stojce (https://keybase.io/stojce) on keybase.
- I have a public key ASCkYiyDYIauf2r2LX4ElZFwX71HcoBw3yt7w9Yt0BXXMgo
To claim this, I am signing this object:
I hereby claim:
To claim this, I am signing this object:
provider "aws" { | |
version = "~> 2.0" | |
region = var.region | |
} |
variable "env" { | |
description = "Depolyment environment" | |
default = "dev" | |
} | |
variable "region" { | |
description = "AWS region" | |
default = "eu-west-1" | |
} |
resource "aws_codepipeline" "static_web_pipeline" { | |
name = "static-web-pipeline" | |
role_arn = data.aws_iam_role.pipeline_role.arn | |
tags = { | |
Environment = var.env | |
} | |
artifact_store { | |
location = var.artifacts_bucket_name | |
type = "S3" |
version: 0.2 | |
env: | |
variables: | |
NODE_ENV: "${env}" | |
phases: | |
install: | |
runtime-versions: | |
nodejs: 12 |
resource "aws_codepipeline_webhook" "codepipeline_webhook" { | |
authentication = "GITHUB_HMAC" | |
name = "codepipeline-webhook" | |
target_action = "Source" | |
target_pipeline = aws_codepipeline.static_web_pipeline.name | |
authentication_configuration { | |
secret_token = random_string.github_secret.result | |
} |
resource "aws_codebuild_project" "static_web_build" { | |
badge_enabled = false | |
build_timeout = 60 | |
name = "static-web-build" | |
queued_timeout = 480 | |
service_role = data.aws_iam_role.build_role.arn | |
tags = { | |
Environment = var.env | |
} |
I hereby claim:
To claim this, I am signing this object: