Skip to content

Commit

Permalink
Change env var names
Browse files Browse the repository at this point in the history
  • Loading branch information
Smorci committed Dec 21, 2023
1 parent a3cdbcc commit cf231e0
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 23 deletions.
7 changes: 0 additions & 7 deletions dockerfiles/Dockerfile-delegation-backend
Original file line number Diff line number Diff line change
Expand Up @@ -3,18 +3,11 @@ FROM golang:1.18
# Set the Current Working Directory inside the container
WORKDIR $GOPATH/src/delegation_backend

# Install aws cli
RUN apt-get update && \
apt-get install -y awscli

# Copy everything from the current directory to the PWD (Present Working Directory) inside the container
COPY src src
COPY database /database
COPY result/headers result/headers

# Copy authentication script
COPY scripts/authenticate.sh /bin/authenticate.sh

# Download all the dependencies
RUN cd src && go get -d -v ./...

Expand Down
14 changes: 0 additions & 14 deletions scripts/authenticate.sh

This file was deleted.

4 changes: 2 additions & 2 deletions src/delegation_backend/app_config.go
Original file line number Diff line number Diff line change
Expand Up @@ -81,9 +81,9 @@ func LoadEnv(log logging.EventLogger) AppConfig {
// if webIdentityTokenFile, roleSessionName and roleArn are set,
// we are using AWS STS to assume a role and get temporary credentials
// if they are not set, we are using AWS IAM user credentials
webIdentityTokenFile := os.Getenv("UPTIME_SERVICE_AWS_WEB_IDENTITY_TOKEN_FILE")
webIdentityTokenFile := os.Getenv("AWS_WEB_IDENTITY_TOKEN_FILE")
roleSessionName := os.Getenv("UPTIME_SERVICE_AWS_ROLE_SESSION_NAME")
roleArn := os.Getenv("UPTIME_SERVICE_AWS_ROLE_ARN")
roleArn := os.Getenv("AWS_ROLE_ARN")
// accessKeyId, secretAccessKey are not mandatory for production set up
accessKeyId := os.Getenv("AWS_ACCESS_KEY_ID")
secretAccessKey := os.Getenv("AWS_SECRET_ACCESS_KEY")
Expand Down

0 comments on commit cf231e0

Please sign in to comment.