Quantcast
Channel: Active questions tagged dockerfile - DevOps Stack Exchange
Viewing all articles
Browse latest Browse all 136

Access AWS Secret inside docker file

$
0
0

I have a docker file running on AWS that looks like the following:

FROM ubuntu:latestRUN apt-get updateRUN apt-get install -y python3RUN apt-get install -y gitRUN git initRUN git clone https://<HARDCODED-ACCESS-TOKEN>@github.com/<folder>/<repo>.git ./new_folder

I have created an AWS secret "git_access_secret" that contains my access token and I would like to access it in my dockerFile so I could do something that looks roughly like the following:

RUN git clone https://secrets[git_access_secret]@github.com/<folder>/<repo>.git ./new_folder

How is this possible to achieve?


Viewing all articles
Browse latest Browse all 136

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>