
3/1/2023 · Jeremy Wagner
What this post added
This post details the technical steps for deploying a React application to Amazon S3 using GitLab CI/CD. It covers configuring an S3 bucket for static website hosting, setting up public access, manually uploading a built React application, and configuring OpenID Connect (OIDC) in AWS for secure authentication between GitLab and AWS. The post provides specific instructions for creating an IAM OIDC identity provider, a permissions policy for S3 access, and an IAM role. It also outlines the necessary CI/CD variables (`ROLE_ARN`, `S3_BUCKET`, `ID_TOKEN`) and the `.gitlab-ci.yml` configuration to assume the role and deploy the application using AWS CLI commands.