How to Deploy to Amazon S3 Using GitLab CI/CD and AWS OIDC Without AWS Access Keys

How to Deploy to Amazon S3 Using GitLab CI/CD and AWS OIDC Without AWS Access Keys

●2 ●38 ●72
calendar_today ago • schedule1 min read
— Originally published at www.freecodecamp.org

From manual S3 uploads to automated deployments

Last October, I spoke at an AWS Skill Builder session about hosting a website on Amazon S3. I used the AWS Console to create the bucket and upload the files.

But I wanted to explore how to automate that process.

I wrote a tutorial showing how to deploy files to Amazon S3 using GitLab CI/CD and AWS OIDC. This allows GitLab to authenticate with AWS using temporary credentials, without storing long-lived access keys.

Once everything is configured, pushing changes to your repository triggers the deployment.

The same approach can also be used with GitHub Actions.

I documented the entire process, including the AWS IAM configuration and GitLab pipeline.

Read the tutorial:
https://freecodecamp.org/news/how-to-deploy-to-amazon-s3-using-gitlab-ci-cd-and-aws-oidc-without-aws-access-keys

If you're learning AWS or CI/CD, I hope you find it useful.

Want more #devops & #aws deep dives?

Join 6,106+ developers sharing real benchmarks, code breakdowns, and projects. Free forever.

1 Comment

0 votes

More Posts

I’m a Senior Dev and I’ve Forgotten How to Think Without a Prompt

Karol Modelski - Mar 19

Short links that outlive the vendor: a newsroom URL shortener on WordPress and AWS

jaafarabazid - Nov 10

How to Reduce Your AWS Bill by 50%

rogo032 - Jan 27

AWS Certifications Are a Building Block, Not the Final Destination

Ijay - Jun 16

10 Proven Ways to Cut Your AWS Bill

rogo032 - Jan 16
chevron_left
2.6k Points • 112 Badges
Lagos, Nigeria • linktr.ee/i_jeoma
31Posts
70Comments
17Connections
Ij exploring cloud infrastructure using AWS,

Related Jobs

Commenters (This Week)

4 comments
2 comments
1 comment

Contribute meaningful comments to climb the leaderboard and earn badges!