...
/Solution Review: Create a Project That is Aware of the Workspace
Solution Review: Create a Project That is Aware of the Workspace
In this lesson, we'll discuss the solution to the Terraform project we discussed in the last lesson.
We'll cover the following...
Problem statement
Part#1
Create a project that is aware of the workspace. The project creates an sqs queue and s3 bucket and uses the workspace name in the name of the sqs queue and s3 bucket. Apply your project to a workspace called dev
and a workspace called prod
.
Part#2
Remove the sqs queue and apply it to both workspaces so that the queue is removed.
Part#3
Destroy all of the resources you have created.
Solution
Let’s discuss the solution of each part one by one and how you can run them.
Part #1
Let’s implement the solution of project part 1:
Note: Please ensure that the bucket name is unique by changing the name in
main.tf
...