Skip to content

Conversation

@octopus-hideaki
Copy link
Contributor

New resources:

  • Space Default Lifecycle Release Retention Policy
  • Space Default Lifecycle Tentacle Retention Policy

New datasource:

  • Space Default Retention Policy

These resources are a little different from other resources and data sources in that they are singletons. So it should not be created nor deleted. Instead, these are brought into or out of the control of Terraform instead.

[sc-126254]

@octopus-hideaki octopus-hideaki requested a review from a team November 10, 2025 19:44
@octopus-hideaki

This comment was marked as resolved.


### Optional

- `quantity_to_keep` (Number) The quantity of items to keep.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Same for this one.

Read-Only:

- `id` (String) The ID of the retention policy.
- `retention_type` (String) The type of retention policy.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It would be great to have a little description of what each retention type means since the user will only have this for context and may no know what the short names mean. maybe we can borrow some of the descriptions from here:
image


### Required

- `strategy` (String) The strategy for the retention policy.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

might be good to have a description here too for people who are unfamiliar. Check out lifecycle.go for examples that could be quite similar (minus mention of default).


# octopusdeploy_space_default_lifecycle_release_retention_policy (Resource)

Manages a space's default lifecycle release retention policy.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Could be good to have something like:
If a lifecycle resource has "strategy = default", the space_default_lifecycle_release_retention_policy will define the retention for that lifecycle resource.

Could be good to have something on this page which mentions that the initial default strategy for all spaces is "Forever".

@octopus-hideaki octopus-hideaki force-pushed the fnm/space-default-retention-lifecycle branch from 4cb7723 to 03e5e57 Compare November 13, 2025 22:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants