Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Updating docs to make type and assume_role_policy use more clear. #198

Merged
merged 2 commits into from
May 16, 2024

Conversation

DevOpsDave
Copy link
Contributor

Change Log Items

  • Update argument text in docs out the mutual exclusiveness of required arguments type and assume_role_policy

Description

When using alks_iamrole users should either specify type or assume_role_policy. Not both but must use one.

Rally:

DE431382: ALKS TF provider: Role Type is mandatory

@DevOpsDave DevOpsDave changed the title Updating docs to make type and assume_role_policy more clear. Updating docs to make type and assume_role_policy use more clear. May 13, 2024
Comment on lines 95 to 96
* `type` - (Required) The role type to use. This argument is mutually exclusive with `assume_role_policy`. To see a list of available roles, [call this endpoint](https://pages.ghe.coxautoinc.com/ETS-CloudAutomation/ALKS-Documentation/#/aws-role-type-rest-service/getAllAwsRoleTypesUsingGET).
* `assume_role_policy` - (Required) A JSON string representing the trust policy for the role. This is only supported for single-service trust policies trusting an approved AWS service. This argument is mutually exclusive with `type`.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Referencing documentation examples from the AWS provider, XORd attributes are Optional with a note: "Exactly one of this, this, or this must be specified". I think wording it this way is clearer.

Also, This page can use some serious upgrades and edits. For instance, the introduction summary is grammatically incorrect. Also The details regarding custom trust policy usage starting on line 32 have changed. The guidelines should be a translation of this function in Fides.

And Lastly, the URL provided in the type attr description is incorrect. It should be the following: https://pages.ghe.coxautoinc.com/ETS-CloudAutomation/ALKS-Documentation/#operation/getAllAwsRoleTypes

All or some of these concerns can be address in this PR. Anything that seems like it falls out of scope can be punted to a new story.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for the catch. I updated the text to use the "Exactly one of this, this, or this must be specified" pattern. Also updated the URL to the correct link.

For your other concerns, I will make a separate defect.

…fied' pattern to describe the mutual exclusiveness of 2 required params. Also updated the list roles endpoint url.
@DevOpsDave DevOpsDave merged commit 7477f69 into master May 16, 2024
2 checks passed
@DevOpsDave DevOpsDave deleted the DE431382-Role-Type-is-mandatory branch May 16, 2024 15:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants