Skip to content

Instantly share code, notes, and snippets.

View stojce's full-sized avatar

Stojce Slavkovski stojce

View GitHub Profile

Keybase proof

I hereby claim:

  • I am stojce on github.
  • I am stojce (https://keybase.io/stojce) on keybase.
  • I have a public key ASCPuJ_Iv6URwhZivTehbM28fWWIQg1-N9_mwr8VUR002Qo

To claim this, I am signing this object:

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
}
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
}
version: 0.2
env:
variables:
NODE_ENV: "${env}"
phases:
install:
runtime-versions:
nodejs: 12
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"
variable "env" {
description = "Depolyment environment"
default = "dev"
}
variable "region" {
description = "AWS region"
default = "eu-west-1"
}
provider "aws" {
version = "~> 2.0"
region = var.region
}

Keybase proof

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: