-
Notifications
You must be signed in to change notification settings - Fork 20
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
5 changed files
with
102 additions
and
89 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -29,6 +29,10 @@ terraform { | |
} | ||
} | ||
} | ||
provider "azurerm" { | ||
features {} | ||
} | ||
``` | ||
|
||
Add the following to the `main.tf` file: | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
# Operating Terraform Cloud for Teams | ||
|
||
Terraform Cloud includes Teams and permissions that are set at the organization and workspace level. In this challenge, you will create teams in your TFC organization, add users, and assign teams permissions to workspaces. | ||
|
||
You will need to start a free trial of the Teams and Governance tier of TFC. The trial is good for 30 days, after which your organization will revert to the Free tier. | ||
|
||
## Tasks | ||
|
||
- Create teams with permissions | ||
- Add users to teams and test permissions | ||
- Assign teams to workspaces with permissions | ||
|
||
## Create teams with permissions | ||
|
||
Teams can have different levels of access to your workspaces. You can invite other users to collaborate on code changes, approvals, and Terraform runs. | ||
|
||
1. Go into your organization's General Settings and click on the **Teams** link. | ||
2. Add a team called **org_admins**. Admins should be able to perform all organization-level actions. | ||
3. Add another team called **web_app_devs**. Developers should not have any organization-wide access. | ||
4. Add a third team called **managers**. Managers should also not have any organization-wide access. | ||
|
||
## Add users to teams and test permissions | ||
|
||
Now that you have created teams you can invite some users to your organization. Return to your **General Settings** for the organization, and select **Users**. Then click the "Invite a user" button. | ||
|
||
Invite a new user with an email you have access to and assign them to the org_admins group. You can also make up a fictitious email, although you won't be able to test permissions. | ||
|
||
## Assign teams to workspaces with permissions | ||
|
||
Next, assign access rights to the an existing workspace. Go into the **Team Access** page of the workspace settings. If you don't see the Team Access link you might need to log out and back into Terraform Cloud. | ||
|
||
You'll want to click the "Add team and permissions" button and then click the "Select team" button next to each team to which you wish to grant workspace access. Then click the "Assign permissions" button for the desired permission. | ||
|
||
- Give the **web_app_devs** group plan level access. | ||
- Give the **managers** group read level access. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters