Skip to content
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

Deprecate aws_opsworks* #41674

Merged
merged 3 commits into from
Mar 5, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
67 changes: 67 additions & 0 deletions .changelog/41674.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,67 @@
```release-note:note
resource/aws_opsworks_application: OpsWorks is no longer supported by AWS. This resource is deprecated and will be removed in the next major version.
```

```release-note:note
resource/aws_opsworks_custom_layer: OpsWorks is no longer supported by AWS. This resource is deprecated and will be removed in the next major version.
```

```release-note:note
resource/aws_opsworks_ecs_cluster_layer: OpsWorks is no longer supported by AWS. This resource is deprecated and will be removed in the next major version.
```

```release-note:note
resource/aws_opsworks_ganglia_layer: OpsWorks is no longer supported by AWS. This resource is deprecated and will be removed in the next major version.
```

```release-note:note
resource/aws_opsworks_haproxy_layer: OpsWorks is no longer supported by AWS. This resource is deprecated and will be removed in the next major version.
```

```release-note:note
resource/aws_opsworks_instance: OpsWorks is no longer supported by AWS. This resource is deprecated and will be removed in the next major version.
```

```release-note:note
resource/aws_opsworks_java_app_layer: OpsWorks is no longer supported by AWS. This resource is deprecated and will be removed in the next major version.
```

```release-note:note
resource/aws_opsworks_memcached_layer: OpsWorks is no longer supported by AWS. This resource is deprecated and will be removed in the next major version.
```

```release-note:note
resource/aws_opsworks_mysql_layer: OpsWorks is no longer supported by AWS. This resource is deprecated and will be removed in the next major version.
```

```release-note:note
resource/aws_opsworks_nodejs_app_layer: OpsWorks is no longer supported by AWS. This resource is deprecated and will be removed in the next major version.
```

```release-note:note
resource/aws_opsworks_permission: OpsWorks is no longer supported by AWS. This resource is deprecated and will be removed in the next major version.
```

```release-note:note
resource/aws_opsworks_php_app_layer: OpsWorks is no longer supported by AWS. This resource is deprecated and will be removed in the next major version.
```

```release-note:note
resource/aws_opsworks_rails_app_layer: OpsWorks is no longer supported by AWS. This resource is deprecated and will be removed in the next major version.
```

```release-note:note
resource/aws_opsworks_rds_db_instance: OpsWorks is no longer supported by AWS. This resource is deprecated and will be removed in the next major version.
```

```release-note:note
resource/aws_opsworks_stack: OpsWorks is no longer supported by AWS. This resource is deprecated and will be removed in the next major version.
```

```release-note:note
resource/aws_opsworks_static_web_layer: OpsWorks is no longer supported by AWS. This resource is deprecated and will be removed in the next major version.
```

```release-note:note
resource/aws_opsworks_user_profile: OpsWorks is no longer supported by AWS. This resource is deprecated and will be removed in the next major version.
```
1 change: 1 addition & 0 deletions internal/service/opsworks/application.go
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ import (
// @SDKResource("aws_opsworks_application", name="Application")
func resourceApplication() *schema.Resource {
return &schema.Resource{
DeprecationMessage: "This resource is deprecated and will be removed in the next major version of the AWS Provider. Consider the AWS Systems Manager service for managing applications.",

CreateWithoutTimeout: resourceApplicationCreate,
ReadWithoutTimeout: resourceApplicationRead,
Expand Down
1 change: 1 addition & 0 deletions internal/service/opsworks/instance.go
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ import (
// @SDKResource("aws_opsworks_instance", name="Instance")
func resourceInstance() *schema.Resource {
return &schema.Resource{
DeprecationMessage: "This resource is deprecated and will be removed in the next major version of the AWS Provider. Consider the AWS Systems Manager service instead.",
CreateWithoutTimeout: resourceInstanceCreate,
ReadWithoutTimeout: resourceInstanceRead,
UpdateWithoutTimeout: resourceInstanceUpdate,
Expand Down
1 change: 1 addition & 0 deletions internal/service/opsworks/layers.go
Original file line number Diff line number Diff line change
Expand Up @@ -447,6 +447,7 @@ func (lt *opsworksLayerType) resourceSchema() *schema.Resource {
}

return &schema.Resource{
DeprecationMessage: "This resource is deprecated and will be removed in the next major version of the AWS Provider. Consider the AWS Systems Manager service instead.",
CreateWithoutTimeout: func(ctx context.Context, d *schema.ResourceData, meta interface{}) diag.Diagnostics {
return lt.Create(ctx, d, meta)
},
Expand Down
1 change: 1 addition & 0 deletions internal/service/opsworks/permission.go
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ import (
// @SDKResource("aws_opsworks_permission", name="Permission")
func resourcePermission() *schema.Resource {
return &schema.Resource{
DeprecationMessage: "This resource is deprecated and will be removed in the next major version of the AWS Provider. Consider the AWS Systems Manager service instead.",
CreateWithoutTimeout: resourceSetPermission,
ReadWithoutTimeout: resourcePermissionRead,
UpdateWithoutTimeout: resourceSetPermission,
Expand Down
1 change: 1 addition & 0 deletions internal/service/opsworks/rds_db_instance.go
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ import (
// @SDKResource("aws_opsworks_rds_db_instance", name="RDS DB Instance")
func resourceRDSDBInstance() *schema.Resource {
return &schema.Resource{
DeprecationMessage: "This resource is deprecated and will be removed in the next major version of the AWS Provider. Consider the AWS Systems Manager service instead.",
CreateWithoutTimeout: resourceRDSDBInstanceCreate,
UpdateWithoutTimeout: resourceRDSDBInstanceUpdate,
DeleteWithoutTimeout: resourceRDSDBInstanceDelete,
Expand Down
1 change: 1 addition & 0 deletions internal/service/opsworks/stack.go
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@ const (
// @Tags
func resourceStack() *schema.Resource {
return &schema.Resource{
DeprecationMessage: "This resource is deprecated and will be removed in the next major version of the AWS Provider. Consider the AWS Systems Manager service instead.",
CreateWithoutTimeout: resourceStackCreate,
ReadWithoutTimeout: resourceStackRead,
UpdateWithoutTimeout: resourceStackUpdate,
Expand Down
1 change: 1 addition & 0 deletions internal/service/opsworks/user_profile.go
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ import (
// @SDKResource("aws_opsworks_user_profile", name="Profile")
func resourceUserProfile() *schema.Resource {
return &schema.Resource{
DeprecationMessage: "This resource is deprecated and will be removed in the next major version of the AWS Provider. Consider the AWS Systems Manager service instead.",
CreateWithoutTimeout: resourceUserProfileCreate,
ReadWithoutTimeout: resourceUserProfileRead,
UpdateWithoutTimeout: resourceUserProfileUpdate,
Expand Down
2 changes: 2 additions & 0 deletions website/docs/r/opsworks_application.html.markdown
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,8 @@ description: |-

Provides an OpsWorks application resource.

!> **ALERT:** AWS no longer supports OpsWorks Stacks. All related resources will be removed from the Terraform AWS Provider in the next major version.

## Example Usage

```terraform
Expand Down
2 changes: 2 additions & 0 deletions website/docs/r/opsworks_custom_layer.html.markdown
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,8 @@ description: |-

Provides an OpsWorks custom layer resource.

!> **ALERT:** AWS no longer supports OpsWorks Stacks. All related resources will be removed from the Terraform AWS Provider in the next major version.

## Example Usage

```terraform
Expand Down
2 changes: 2 additions & 0 deletions website/docs/r/opsworks_ecs_cluster_layer.html.markdown
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,8 @@ description: |-

Provides an OpsWorks ECS Cluster layer resource.

!> **ALERT:** AWS no longer supports OpsWorks Stacks. All related resources will be removed from the Terraform AWS Provider in the next major version.

## Example Usage

```terraform
Expand Down
2 changes: 2 additions & 0 deletions website/docs/r/opsworks_ganglia_layer.html.markdown
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,8 @@ description: |-

Provides an OpsWorks Ganglia layer resource.

!> **ALERT:** AWS no longer supports OpsWorks Stacks. All related resources will be removed from the Terraform AWS Provider in the next major version.

## Example Usage

```terraform
Expand Down
2 changes: 2 additions & 0 deletions website/docs/r/opsworks_haproxy_layer.html.markdown
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,8 @@ description: |-

Provides an OpsWorks haproxy layer resource.

!> **ALERT:** AWS no longer supports OpsWorks Stacks. All related resources will be removed from the Terraform AWS Provider in the next major version.

## Example Usage

```terraform
Expand Down
2 changes: 2 additions & 0 deletions website/docs/r/opsworks_instance.html.markdown
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,8 @@ description: |-

Provides an OpsWorks instance resource.

!> **ALERT:** AWS no longer supports OpsWorks Stacks. All related resources will be removed from the Terraform AWS Provider in the next major version.

## Example Usage

```terraform
Expand Down
2 changes: 2 additions & 0 deletions website/docs/r/opsworks_java_app_layer.html.markdown
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,8 @@ description: |-

Provides an OpsWorks Java application layer resource.

!> **ALERT:** AWS no longer supports OpsWorks Stacks. All related resources will be removed from the Terraform AWS Provider in the next major version.

## Example Usage

```terraform
Expand Down
2 changes: 2 additions & 0 deletions website/docs/r/opsworks_memcached_layer.html.markdown
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,8 @@ description: |-

Provides an OpsWorks memcached layer resource.

!> **ALERT:** AWS no longer supports OpsWorks Stacks. All related resources will be removed from the Terraform AWS Provider in the next major version.

## Example Usage

```terraform
Expand Down
2 changes: 2 additions & 0 deletions website/docs/r/opsworks_mysql_layer.html.markdown
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,8 @@ description: |-

Provides an OpsWorks MySQL layer resource.

!> **ALERT:** AWS no longer supports OpsWorks Stacks. All related resources will be removed from the Terraform AWS Provider in the next major version.

~> **Note:** All arguments including the root password will be stored in the raw state as plain-text.
[Read more about sensitive data in state](https://www.terraform.io/docs/state/sensitive-data.html).

Expand Down
2 changes: 2 additions & 0 deletions website/docs/r/opsworks_nodejs_app_layer.html.markdown
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,8 @@ description: |-

Provides an OpsWorks NodeJS application layer resource.

!> **ALERT:** AWS no longer supports OpsWorks Stacks. All related resources will be removed from the Terraform AWS Provider in the next major version.

## Example Usage

```terraform
Expand Down
2 changes: 2 additions & 0 deletions website/docs/r/opsworks_permission.html.markdown
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,8 @@ description: |-

Provides an OpsWorks permission resource.

!> **ALERT:** AWS no longer supports OpsWorks Stacks. All related resources will be removed from the Terraform AWS Provider in the next major version.

## Example Usage

```terraform
Expand Down
2 changes: 2 additions & 0 deletions website/docs/r/opsworks_php_app_layer.html.markdown
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,8 @@ description: |-

Provides an OpsWorks PHP application layer resource.

!> **ALERT:** AWS no longer supports OpsWorks Stacks. All related resources will be removed from the Terraform AWS Provider in the next major version.

## Example Usage

```terraform
Expand Down
2 changes: 2 additions & 0 deletions website/docs/r/opsworks_rails_app_layer.html.markdown
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,8 @@ description: |-

Provides an OpsWorks Ruby on Rails application layer resource.

!> **ALERT:** AWS no longer supports OpsWorks Stacks. All related resources will be removed from the Terraform AWS Provider in the next major version.

## Example Usage

```terraform
Expand Down
2 changes: 2 additions & 0 deletions website/docs/r/opsworks_rds_db_instance.html.markdown
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,8 @@ description: |-

Provides an OpsWorks RDS DB Instance resource.

!> **ALERT:** AWS no longer supports OpsWorks Stacks. All related resources will be removed from the Terraform AWS Provider in the next major version.

~> **Note:** All arguments including the username and password will be stored in the raw state as plain-text.
[Read more about sensitive data in state](https://www.terraform.io/docs/state/sensitive-data.html).

Expand Down
2 changes: 2 additions & 0 deletions website/docs/r/opsworks_stack.html.markdown
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,8 @@ description: |-

Provides an OpsWorks stack resource.

!> **ALERT:** AWS no longer supports OpsWorks Stacks. All related resources will be removed from the Terraform AWS Provider in the next major version.

## Example Usage

```terraform
Expand Down
2 changes: 2 additions & 0 deletions website/docs/r/opsworks_static_web_layer.html.markdown
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,8 @@ description: |-

Provides an OpsWorks static web server layer resource.

!> **ALERT:** AWS no longer supports OpsWorks Stacks. All related resources will be removed from the Terraform AWS Provider in the next major version.

## Example Usage

```terraform
Expand Down
2 changes: 2 additions & 0 deletions website/docs/r/opsworks_user_profile.html.markdown
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,8 @@ description: |-

Provides an OpsWorks User Profile resource.

!> **ALERT:** AWS no longer supports OpsWorks Stacks. All related resources will be removed from the Terraform AWS Provider in the next major version.

## Example Usage

```terraform
Expand Down
Loading