Skip to content

Commit

Permalink
Merge pull request #2652 from input-output-hk/new-live-env
Browse files Browse the repository at this point in the history
Adding the setup (and a bugfix) to deploy playground.plutus.iohkdev.io.
  • Loading branch information
krisajenkins committed Jan 26, 2021
2 parents 58a23c1 + 2bfb3e7 commit 3cba27d
Show file tree
Hide file tree
Showing 8 changed files with 9 additions and 3 deletions.
9 changes: 6 additions & 3 deletions deployment/default.nix
Expand Up @@ -56,10 +56,12 @@ let
plutus_playground_lambda_file="${plutus-playground-lambda}/plutus-playground-lambda.zip"'';
};

syncS3 = env:
syncS3 = env: region:
writeShellScript "syncs3" ''
set -eou pipefail
export AWS_REGION=${region}
echo "sync with S3"
${plutus.thorp}/bin/thorp -b marlowe-playground-website-${env} -s ${static.marlowe}
${plutus.thorp}/bin/thorp -b plutus-playground-website-${env} -s ${static.plutus}
Expand Down Expand Up @@ -115,7 +117,7 @@ let
set -eou pipefail
${applyTerraform env region}
${syncS3 env}
${syncS3 env region}
echo "done"
'';

Expand Down Expand Up @@ -149,7 +151,7 @@ let

mkEnv = env: region: {
inherit terraform-vars terraform-locals terraform;
syncS3 = (syncS3 env);
syncS3 = (syncS3 env region);
applyTerraform = (applyTerraform env region);
deploy = (deploy env region);
destroy = (destroy env region);
Expand All @@ -160,6 +162,7 @@ let
kris = mkEnv "kris" "eu-west-1";
alpha = mkEnv "alpha" "eu-west-2";
pablo = mkEnv "pablo" "eu-west-3";
playground = mkEnv "playground" "us-west-1";
wyohack = mkEnv "wyohack" "us-west-2";
testing = mkEnv "testing" "eu-west-3";
};
Expand Down
3 changes: 3 additions & 0 deletions deployment/terraform/variables.tf
Expand Up @@ -70,6 +70,7 @@ variable "bastion_ssh_keys" {
kris = ["kris"]
pablo = ["pablo"]
prod = [ "live-infra-staging", "david", "kris", "mpj" ]
playground = [ "live-infra-staging", "david", "kris", "mpj" ]
wyohack = ["david", "pablo", "kris"]
testing = ["david", "pablo", "kris"]
}
Expand All @@ -85,6 +86,7 @@ variable "nixops_ssh_keys" {
kris = ["kris"]
pablo = ["pablo"]
prod = [ "live-infra-staging" ]
playground = [ "live-infra-staging", "kris", "david" ]
wyohack = ["david", "pablo", "kris"]
testing = ["david", "pablo", "kris"]
}
Expand All @@ -100,6 +102,7 @@ variable "playground_ssh_keys" {
kris = ["kris"]
pablo = ["pablo"]
prod = [ "live-infra-staging", "david", "kris", "mpj" ]
playground = [ "live-infra-staging", "david", "kris", "mpj" ]
wyohack = ["david", "pablo", "kris"]
testing = ["david", "pablo", "kris"]
}
Expand Down
Binary file added secrets/playground/marlowe/githubClientId.gpg
Binary file not shown.
Binary file added secrets/playground/marlowe/githubClientSecret.gpg
Binary file not shown.
Binary file added secrets/playground/marlowe/jwtSignature.gpg
Binary file not shown.
Binary file added secrets/playground/plutus/githubClientId.gpg
Binary file not shown.
Binary file added secrets/playground/plutus/githubClientSecret.gpg
Binary file not shown.
Binary file added secrets/playground/plutus/jwtSignature.gpg
Binary file not shown.

0 comments on commit 3cba27d

Please sign in to comment.