To deploy the environment, follow these steps:
- Install terraform
- Authorize in AWS terminal session
- Change to the
./terraform
folder and run the following commands:tf init # Initialize providers and modules tf plan # Preview the changes tf apply # Apply the changes to your AWS account
The local variables required for the environment are stored in the file ./variables.tf
.
Please review and modify them if necessary before deploying.
Common tags for all deployed resources are defined in ./tags.tf
. The tags currently being used are:
deployed_by
: This tag helps identify the person who deployed the environment.enviroment
: This tag is used to specify the environment name.CreationDate
: This tag displays the creation/update date of resources in ISO 8601 format.
Since there is no valid certificate available, a self-signed certificate must be used. Follow these steps to generate a new self-signed certificate from the ./certs/
folder:
- Run the script create_upload_cert.sh by executing the following commands:
chmod +x create_upload_cert.sh ./create_upload_cert.sh
- This script will generate two files:
cert.pem
andkey.pem
, which will be used as the TLS terminator on ALB (Application Load Balancer). Please ensure you have the necessary permissions and prerequisites before following these steps.
Feel free to make any necessary changes to these tags according to your project requirements.
If you have any questions or face any issues during the deployment process, don't hesitate to reach out to the DevOps team for assistance.
Happy deploying!