Skip to content

[Docs]: Incorrect values for "vpc_config" block in AppStream image builder resource #33027

Open
@rrachev

Description

Documentation Link

https://registry.terraform.io/providers/hashicorp/aws/latest/docs/resources/appstream_image_builder#endpoint_type

Description

Documentation on above provided link state that "vpc_config" block in "aws_appstream_image_builder" has to look like this:
vpc_config { subnet_ids = [aws_subnet.example.id] }

It states that you must provide the "subnet_ids" but actually you could not provide more than 1 subnet.

Here is also the description of the parameters extracted from above provided link:
`vpc_config
The vpc_config block supports the following arguments:

security_group_ids - (Optional) Identifiers of the security groups for the image builder or image builder.
subnet_ids - (Optional) Identifiers of the subnets to which a network interface is attached from the image builder instance or image builder instance.`

As you could noticed the description is clearly state that "Identifiers of the subnets".
Also there is duplication of words at the end of there descriptions "for the image builder or image builder." and "from the image builder instance or image builder instance."

References

Output from terraform apply with multiple subnets:
│ Error: creating AppStream ImageBuilder (test-image-builder2): InvalidParameterCombinationException: Please provide only a single subnet id. │ │ with module.appstream2.aws_appstream_image_builder.image_builder, │ on ../main.tf line 4, in resource "aws_appstream_image_builder" "image_builder": │ 4: resource "aws_appstream_image_builder" "image_builder" {

Would you like to implement a fix?

No

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Assignees

No one assigned

    Labels

    documentationIntroduces or discusses updates to documentation.enhancementRequests to existing resources that expand the functionality or scope.good first issueCall to action for new contributors looking for a place to start. Smaller or straightforward issues.service/appstreamIssues and PRs that pertain to the appstream service.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions