-
Notifications
You must be signed in to change notification settings - Fork 6
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
Add support for AWS Identity Center #19
Conversation
@@ -416,14 +411,38 @@ func resourceResourceRead(ctx context.Context, d *schema.ResourceData, m any) di | |||
} | |||
d.Set("reviewer_stage", reviewerStagesI) | |||
|
|||
if resource.Metadata != nil { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
why do we need the remote_info
during the read operation? Other resources types currently don't require it, right?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this is so that we can set the remote_info
with AWS account ID and ARN when importing from terraformer
, so that we can support such a workflow like this:
- Use Opal to auto-import provisioned to get permission sets into our system
- Use
terraformer
to import accounts and permission sets into.tf
files, with theremote_info
filled so that the accounts can be updated (felt a bit weird to me thatremote_info
only exists when we create new remote resources) - From there on, set app to manual import (to be added) and then use TF to manage permission sets
I imagine we can set this for other AWS Orgs resources too, but I just did permission sets for now
- Support creating and deleting permission sets - Remote info will be imported for permission sets so that the parent accounts can be referenced and modified as desired
- Updated README / remote_resource.tf - Ran `make docs`
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
Description of the change
Support creating and deleting permission sets
Remote info will be imported for permission sets so that the parent accounts can be referenced and modified as desired
Note: Build will fail until new version of the Go SDK is released.
Checklist