Identity Terraform resources

The resources and data sources of the ews provider for Identity. Setting up the provider: Terraform & OpenTofu.

Resources

  • dcloud_iam_access_keyAn access key of an IAM user: access_key_id and secret_key, used together as EWS-ACCESS-KEY <access_key_id>:<secret_key> (the provider's access_key). The secret is returned once, at create, and kept in state: protect the state as you would the key.
  • dcloud_iam_grantGrants a principal named capabilities (secret.read-value, repository.push, …) on one resource. Deutsche Cloud writes it as a policy holding exactly those actions on exactly that resource name and attaches it; destroying the grant deletes that policy. The caller must hold every action it hands out.
  • dcloud_iam_groupAn IAM group: users added with dcloud_iam_group_membership get the policies attached with dcloud_iam_group_policy_attachment.
  • dcloud_iam_group_membershipOne IAM user in one IAM group.
  • dcloud_iam_group_policy_attachmentAttaches an IAM policy to an IAM group.
  • dcloud_iam_oidc_providerAn OpenID Connect identity provider (e.g. GitHub Actions) whose tokens can assume roles. Name it as Principal.Federated in an dcloud_iam_role trust policy.
  • dcloud_iam_password_policyThe organization's rules for IAM-user console passwords (dcloud_iam_user_login_profile): length, character classes, expiry, lockout, how long one sign-in lasts, and whether IAM users may sign in with a password at all. One per organization: create adopts it, destroy restores the defaults. Import with any id, e.g. password_policy.
  • dcloud_iam_policyA custom IAM policy. Managed policies (AdministratorAccess, …) already exist in every organization.
  • dcloud_iam_roleAn IAM role: a set of policies that users or federated identities assume.
  • dcloud_iam_role_policy_attachmentAttaches an IAM policy to an IAM role.
  • dcloud_iam_sso_connectionThe organization's single sign-on identity provider (OIDC or SAML) for the console. It signs nobody in until enabled, and it can be enabled only once one of its domains (dcloud_iam_sso_domain) is verified by DNS.
  • dcloud_iam_sso_domainAn email domain of an SSO connection. It counts once verified: publish the TXT record (verification_record_name = verification_record_value, e.g. with dcloud_dns_record) and verify it in the console or with dcloud iam sso-connections verify-domain. Until then verified_at is null and the connection cannot be enabled.
  • dcloud_iam_userAn IAM user: a person's or a machine's (type = "service_account") identity. Attach policies with dcloud_iam_user_policy_attachment.
  • dcloud_iam_user_login_profileA console password for an IAM user (type user): they sign in at sign_in_url with their user name and this password, no email account of their own. Set password, or generate_password = true and read generated_password (kept in state: protect the state). Import with the IAM user id.
  • dcloud_iam_user_policy_attachmentAttaches an IAM policy to an IAM user.
  • dcloud_iam_user_role_assignmentAssigns an IAM role to an IAM user: the user holds the role's policies.

Data sources

Generated from the provider's schema.