-
Notifications
You must be signed in to change notification settings - Fork 4
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 Api Tokens Data Source #104
Conversation
ExpiryPeriodInDays types.Int64 `tfsdk:"expiry_period_in_days"` | ||
LastUsedAt types.String `tfsdk:"last_used_at"` | ||
Roles types.Set `tfsdk:"roles"` | ||
Token types.String `tfsdk:"token"` |
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.
will prob need to split up this into ApiTokenResource and ApiTokenDataSource similar to Deployment since Token
will only show up in resource
- will need to figure out how to do
rotate
andupdating roles
Co-authored-by: Vandy Liu <33995460+vandyliu@users.noreply.github.com>
Co-authored-by: Vandy Liu <33995460+vandyliu@users.noreply.github.com>
Co-authored-by: Vandy Liu <33995460+vandyliu@users.noreply.github.com>
Co-authored-by: Vandy Liu <33995460+vandyliu@users.noreply.github.com>
tfOrganizationId := os.Getenv("HOSTED_ORGANIZATION_ID") | ||
tfWorkspaceId := os.Getenv("HOSTED_WORKSPACE_ID") | ||
tfDeploymentId := os.Getenv("HOSTED_DEPLOYMENT_ID") | ||
tfOrgOnly := true |
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.
nit: not needed
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 is this not needed? i used all of these ids as a check in checkApiTokens
function
Co-authored-by: Vandy Liu <33995460+vandyliu@users.noreply.github.com>
Co-authored-by: Vandy Liu <33995460+vandyliu@users.noreply.github.com>
Co-authored-by: Vandy Liu <33995460+vandyliu@users.noreply.github.com>
Co-authored-by: Vandy Liu <33995460+vandyliu@users.noreply.github.com>
Co-authored-by: Vandy Liu <33995460+vandyliu@users.noreply.github.com>
Co-authored-by: Vandy Liu <33995460+vandyliu@users.noreply.github.com>
Co-authored-by: Vandy Liu <33995460+vandyliu@users.noreply.github.com>
…r/astronomer-terraform-provider into 103-add-api-tokens-data-source
Description
🎟 Issue(s)
#103
🧪 Functional Testing
📸 Screenshots
📋 Checklist
examples/
directory