Skip to content

Commit

Permalink
feat(iam): add graph api key as an env variable
Browse files Browse the repository at this point in the history
  • Loading branch information
tim-schultz committed Jan 16, 2023
1 parent 5204a8a commit 357e777
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 0 deletions.
1 change: 1 addition & 0 deletions iam/.env-example.env
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ DISCORD_CLIENT_SECRET=MY_APP_CLIENT_SECRET
DISCORD_CALLBACK=MY_APP_CALLBACK
ETHERSCAN_API_KEY=MY_API_KEY
CURRENT_ENV=development
GTC_STAKING_GRAPH_API_KEY=MY_API_KEY

# For server to use a consistent public key, provide a valid Ed25519 key here:
# IAM_JWK='{"kty":"OKP","crv":"Ed25519","x":"yourIamKeyValues","d":"yourIamKeyValues"}'
Expand Down
4 changes: 4 additions & 0 deletions infra/production/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -252,6 +252,10 @@ const service = new awsx.ecs.FargateService("dpopp-iam", {
name: "AMI_API_TOKEN",
valueFrom: `${IAM_SERVER_SSM_ARN}:AMI_API_TOKEN::`,
},
{
name: "GTC_STAKING_GRAPH_API_KEY",
valueFrom: `${IAM_SERVER_SSM_ARN}:GTC_STAKING_GRAPH_API_KEY::`,
},
],
},
},
Expand Down
4 changes: 4 additions & 0 deletions infra/review/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -252,6 +252,10 @@ const service = new awsx.ecs.FargateService("dpopp-iam", {
name: "AMI_API_TOKEN",
valueFrom: `${IAM_SERVER_SSM_ARN}:AMI_API_TOKEN::`,
},
{
name: "GTC_STAKING_GRAPH_API_KEY",
valueFrom: `${IAM_SERVER_SSM_ARN}:GTC_STAKING_GRAPH_API_KEY::`,
},
],
},
},
Expand Down
4 changes: 4 additions & 0 deletions infra/staging/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -255,6 +255,10 @@ const service = new awsx.ecs.FargateService("dpopp-iam", {
name: "AMI_API_TOKEN",
valueFrom: `${IAM_SERVER_SSM_ARN}:AMI_API_TOKEN::`,
},
{
name: "GTC_STAKING_GRAPH_API_KEY",
valueFrom: `${IAM_SERVER_SSM_ARN}:GTC_STAKING_GRAPH_API_KEY::`,
},
],
},
},
Expand Down

0 comments on commit 357e777

Please sign in to comment.