1. Create S3 Bucket
2. Add secrets under GIT REPO secrets (AWS_ACCESS_KEY_ID & AWS_SECRET_ACCESS_KEY)
aws s3api create-bucket \
--bucket nodejsartifactsdeploy \
--region us-east-1
Create new branch and update terraform directory and update environment variable Terraform_Operation
as Apply
````Note:```
-
If we push to new branch it will be done only plan
-
If we Raise PR to master branch job will be run and it will be apply/destroy
-
Create new branch and updated terraform directory
- Whenever we run commit pipeline will be run under Actions
- Here terraform plan only will be happen for us
- Raise Pull-Request
- After accepting PR Terraform apply will be happen