environment_name and policy_name are immutable: changing either attribute will destroy the existing attachment and create a new one.
Both the policy and environment must exist before creating an attachment. Use the
kosli_policy resource and kosli_environment resource to manage them.Example usage
Import
Policy attachments can be imported using the composite IDenvironment_name/policy_name:
Schema
Required
environment_name(String) Name of the environment to attach the policy to. Changing this will force recreation of the resource.policy_name(String) Name of the policy to attach. Changing this will force recreation of the resource.