Which combination of steps will meet these requirements?
(Choose three.)
Create an AWS CodeCommit repository to store the source code. Create an AWS CodePipeline pipeline that has a source of the CodeCommit repository.
Create an S3 bucket to act as the source for developers to upload their source code. Create an AWS CodePipeline pipeline that has the S3 bucket as the source.
In the CodePipeline pipeline, configure an AWS CodeBuild phase that compiles the source code and produces build artifacts.
In the CodePipeline pipeline, configure an AWS CodeDeploy phase that compiles the source code, produces build artifacts, and then deploys the website.
In the CodePipeline pipeline, configure an AWS AppConfig deploy action that deploys the build artifacts to the S3 website bucket.
In the CodePipeline pipeline, configure an S3 deploy action that deploys the build artifacts to the S3 website bucket.
Explanations:
AWS CodeCommit provides a managed Git repository for version control, allowing developers to store and manage the source code. CodePipeline can integrate with CodeCommit as a source stage, facilitating automated deployments upon code changes.
Using an S3 bucket as a source for developers to upload source code is not ideal for version control and peer review. S3 is not designed for source code management, and it lacks the features necessary for collaborative development processes like version history and pull requests.
Configuring an AWS CodeBuild phase in CodePipeline allows the source code to be compiled and packaged into build artifacts. This step is essential for transforming the source code into a deployable format for the S3 bucket.
AWS CodeDeploy is not necessary for deploying static websites stored in S3. CodeDeploy is primarily used for deploying applications to EC2 instances or Lambda functions, making it unsuitable for the deployment of a static site.
AWS AppConfig is used for managing application configurations rather than deploying static web content to S3. It does not serve as a deployment mechanism for web applications, making this option irrelevant for the stated requirement.
Configuring an S3 deploy action in CodePipeline allows for the direct deployment of build artifacts to the S3 bucket that serves the website. This is the correct approach for publishing a static website hosted on S3.