Skip to content

Commit

Permalink
Merge pull request #41677 from hashicorp/d-deprecate-elastic-graphics…
Browse files Browse the repository at this point in the history
…-inference-lt

Deprecate Elastic Graphics/Inference in `aws_launch_template`
  • Loading branch information
YakDriver authored Mar 6, 2025
2 parents 974c8a3 + 7e83f52 commit dbf9f04
Show file tree
Hide file tree
Showing 4 changed files with 23 additions and 12 deletions.
7 changes: 7 additions & 0 deletions .changelog/41677.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
```release-note:note
data-source/aws_launch_template: `elastic_gpu_specifications` and `elastic_inference_accelerator` are deprecated. AWS no longer supports Elastic Graphics or Elastic Inference.
```

```release-note:note
resource/aws_launch_template: `elastic_gpu_specifications` and `elastic_inference_accelerator` are deprecated. AWS no longer supports Elastic Graphics or Elastic Inference.
```
12 changes: 7 additions & 5 deletions internal/service/ec2/ec2_launch_template.go
Original file line number Diff line number Diff line change
Expand Up @@ -220,8 +220,9 @@ func resourceLaunchTemplate() *schema.Resource {
ValidateFunc: nullable.ValidateTypeStringNullableBool,
},
"elastic_gpu_specifications": {
Type: schema.TypeList,
Optional: true,
Deprecated: "elastic_gpu_specifications is deprecated. AWS no longer supports the Elastic Graphics service.",
Type: schema.TypeList,
Optional: true,
Elem: &schema.Resource{
Schema: map[string]*schema.Schema{
names.AttrType: {
Expand All @@ -232,9 +233,10 @@ func resourceLaunchTemplate() *schema.Resource {
},
},
"elastic_inference_accelerator": {
Type: schema.TypeList,
Optional: true,
MaxItems: 1,
Deprecated: "elastic_inference_accelerator is deprecated. AWS no longer supports the Elastic Inference service.",
Type: schema.TypeList,
Optional: true,
MaxItems: 1,
Elem: &schema.Resource{
Schema: map[string]*schema.Schema{
names.AttrType: {
Expand Down
10 changes: 6 additions & 4 deletions internal/service/ec2/ec2_launch_template_data_source.go
Original file line number Diff line number Diff line change
Expand Up @@ -178,8 +178,9 @@ func dataSourceLaunchTemplate() *schema.Resource {
Computed: true,
},
"elastic_gpu_specifications": {
Type: schema.TypeList,
Computed: true,
Deprecated: "elastic_gpu_specifications is deprecated. AWS no longer supports the Elastic Graphics service.",
Type: schema.TypeList,
Computed: true,
Elem: &schema.Resource{
Schema: map[string]*schema.Schema{
names.AttrType: {
Expand All @@ -190,8 +191,9 @@ func dataSourceLaunchTemplate() *schema.Resource {
},
},
"elastic_inference_accelerator": {
Type: schema.TypeList,
Computed: true,
Deprecated: "elastic_inference_accelerator is deprecated. AWS no longer supports the Elastic Inference service.",
Type: schema.TypeList,
Computed: true,
Elem: &schema.Resource{
Schema: map[string]*schema.Schema{
names.AttrType: {
Expand Down
6 changes: 3 additions & 3 deletions website/docs/r/launch_template.html.markdown
Original file line number Diff line number Diff line change
Expand Up @@ -123,9 +123,9 @@ This resource supports the following arguments:
* `disable_api_termination` - (Optional) If `true`, enables [EC2 Instance
Termination Protection](https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/Using_ChangingDisableAPITermination.html)
* `ebs_optimized` - (Optional) If `true`, the launched EC2 instance will be EBS-optimized.
* `elastic_gpu_specifications` - (Optional) The elastic GPU to attach to the instance. See [Elastic GPU](#elastic-gpu)
* `elastic_gpu_specifications` - (Optional) **DEPRECATED** The elastic GPU to attach to the instance. See [Elastic GPU](#elastic-gpu)
below for more details.
* `elastic_inference_accelerator` - (Optional) Configuration block containing an Elastic Inference Accelerator to attach to the instance. See [Elastic Inference Accelerator](#elastic-inference-accelerator) below for more details.
* `elastic_inference_accelerator` - (Optional) **DEPRECATED** Configuration block containing an Elastic Inference Accelerator to attach to the instance. See [Elastic Inference Accelerator](#elastic-inference-accelerator) below for more details.
* `enclave_options` - (Optional) Enable Nitro Enclaves on launched instances. See [Enclave Options](#enclave-options) below for more details.
* `hibernation_options` - (Optional) The hibernation options for the instance. See [Hibernation Options](#hibernation-options) below for more details.
* `iam_instance_profile` - (Optional) The IAM Instance Profile to launch the instance with. See [Instance Profile](#instance-profile)
Expand Down Expand Up @@ -236,7 +236,7 @@ The `elastic_gpu_specifications` block supports the following:

### Elastic Inference Accelerator

Attach an Elastic Inference Accelerator to the instance. Additional information about Elastic Inference in EC2 can be found in the [EC2 User Guide](https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/elastic-inference.html).
**DEPRECATED** Attach an Elastic Inference Accelerator to the instance. Additional information about Elastic Inference in EC2 can be found in the [EC2 User Guide](https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/elastic-inference.html).

The `elastic_inference_accelerator` configuration block supports the following:

Expand Down

0 comments on commit dbf9f04

Please sign in to comment.