confluent_invitation
provides an invitation resource that enables creating, reading, and deleting invitation on Confluent Cloud.
resource "confluent_invitation" "main" {
email = ""
}
resource "confluent_invitation" "main2" {
email = ""
auth_type = "AUTH_TYPE_LOCAL"
}
The following arguments are supported:
email
- (Required String) The user/invitee's email address.auth_type
- (Optional String) Accepted values are: AUTH_TYPE_LOCAL
and AUTH_TYPE_SSO
. The user/invitee's authentication type. Note that only the OrganizationAdmin role
can invite AUTH_TYPE_LOCAL
users to SSO organizations. The user's auth_type is set as AUTH_TYPE_SSO
by default if the organization has SSO enabled. Otherwise, the user's auth_type is AUTH_TYPE_LOCAL
by default.In addition to the preceding arguments, the following attributes are exported:
id
- (Required String) The ID of the Invitation, for example, i-zyw30
.status
- (Optional String) The status of invitations. Accepted values are: INVITE_STATUS_SENT
,INVITE_STATUS_STAGED
,INVITE_STATUS_ACCEPTED
,INVITE_STATUS_EXPIRED
, and INVITE_STATUS_DEACTIVATED
.accepted_at
- (Optional String) The timestamp that the invitation was accepted.expires_at
- (Optional String) The timestamp that the invitation will expire.user
- (Required Configuration Block) supports the following:
id
- (Required String) The id of user/invitee.creator
- (Required Configuration Block) supports the following:
id
- (Required String) The id of invitation creator.You can import an Invitation by using Invitation ID, for example:
$ export CONFLUENT_CLOUD_API_KEY="<cloud_api_key>"
$ export CONFLUENT_CLOUD_API_SECRET="<cloud_api_secret>"
$ terraform import confluent_invitation.main i-gxxn1