This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
server { | |
listen 80; | |
server_name my-example.io; | |
location ~ ^/(auth|login|logout|static) { | |
proxy_pass http://vouch; | |
proxy_set_header Host $http_host; | |
} | |
location /validate { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
ser ubuntu; | |
worker_processes 1; | |
pid /run/nginx.pid; | |
include /etc/nginx/modules-enabled/*.conf; | |
events { | |
worker_connections 1024; | |
# multi_accept on; | |
} | |
http { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Vouch Proxy configuration | |
# bare minimum to get Vouch Proxy running with OpenID Connect (such as okta) | |
vouch: | |
logLevel: debug | |
# domains: | |
# valid domains that the jwt cookies can be set into | |
# the callback_urls will be to these domains | |
#domains: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
SynthAction = new SimpleSynthAction(new SimpleSynthActionProps | |
{ | |
SourceArtifact = artifact, | |
CloudAssemblyArtifact = cloudAssemblyArtifact, | |
InstallCommands = new[]{"npm install -g aws-cdk", | |
"wget https://packages.microsoft.com/config/ubuntu/18.04/packages-microsoft-prod.deb -O packages-microsoft-prod.deb", | |
"dpkg -i packages-microsoft-prod.deb", "apt-get update", "apt-get install -y apt-transport-https", "apt-get update", | |
"apt-get install -y dotnet-sdk-3.1"}, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var deploy = new AppPipelineStage(this, "Deploy", new Amazon.CDK.StageProps | |
{ | |
Env = new Amazon.CDK.Environment | |
{ | |
Account = "XXXXXXXXXXXX", | |
Region = "eu-west-1" | |
} | |
}); | |
var stage = pipeline.AddApplicationStage(deploy); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using Amazon.CDK; | |
using Amazon.CDK.Pipelines; | |
namespace CdkPipelines | |
{ | |
public class AppPipelineStage : Stage | |
{ | |
public AppPipelineStage(Construct scope, string id, StageProps props = null) | |
: base(scope, id, props) | |
{ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
SynthAction = new SimpleSynthAction(new SimpleSynthActionProps | |
{ | |
SourceArtifact = artifact, | |
CloudAssemblyArtifact = cloudAssemblyArtifact, // Where to place built source | |
InstallCommands = new[]{ | |
"npm install -g aws-cdk", | |
"wget https://packages.microsoft.com/config/ubuntu/18.04/packages-microsoft-prod.deb -O packages-microsoft-prod.deb", | |
"dpkg -i packages-microsoft-prod.deb", "apt-get update", "apt-get install -y apt-transport-https", "apt-get update", | |
"apt-get install -y dotnet-sdk-3.1" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using Amazon.CDK; | |
using System.IO; | |
using Amazon.CDK.AWS.EC2; | |
using Amazon.CDK.AWS.ECS; | |
using Amazon.CDK.AWS.ECS.Patterns; | |
namespace CdkPipelines | |
{ | |
public class WhatDayOfWeekStack : Stack | |
{ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"Effect": "Allow", | |
"Action": "codestar-connections:UseConnection", | |
"Resource": "connectionArn" | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var policyProps = new PolicyStatementProps() | |
{ | |
Actions = new string[] { "codestar-connections:UseConnection" }, | |
Effect = Effect.ALLOW, | |
Resources = new string[] { connectionArn } | |
}; | |
pipeline.CodePipeline.AddToRolePolicy(new PolicyStatement(policyProps)); |
NewerOlder