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

d/docdb_engine_version: New data source #15253

Merged
merged 1 commit into from
Sep 23, 2020
Merged

Conversation

YakDriver
Copy link
Member

@YakDriver YakDriver commented Sep 21, 2020

Community Note

  • Please vote on this pull request by adding a 👍 reaction to the original pull request comment to help the community and maintainers prioritize this request
  • Please do not leave "+1" or other comments that do not add relevant new information or questions, they generate extra noise for pull request followers and do not help prioritize the request

Closes #15255
Relates #15228, #15259

Release note for CHANGELOG:

d/docdb_engine_version: New data source

The output from acceptance testing (GovCloud):

--- PASS: TestAccAWSDocDBEngineVersionDataSource_basic (15.96s)
--- PASS: TestAccAWSDocDBEngineVersionDataSource_preferred (17.53s)
--- PASS: TestAccAWSDocDBEngineVersionDataSource_defaultOnly (17.53s)

The output from acceptance testing (commercial):

--- PASS: TestAccAWSDocDBEngineVersionDataSource_basic (11.66s)
--- PASS: TestAccAWSDocDBEngineVersionDataSource_preferred (12.77s)
--- PASS: TestAccAWSDocDBEngineVersionDataSource_defaultOnly (12.77s)

@YakDriver YakDriver requested a review from a team September 21, 2020 20:40
@ghost ghost added size/XL Managed by automation to categorize the size of a PR. documentation Introduces or discusses updates to documentation. provider Pertains to the provider itself, rather than any interaction with AWS. service/docdb Issues and PRs that pertain to the docdb service. tests PRs: expanded test coverage. Issues: expanded coverage, enhancements to test infrastructure. labels Sep 21, 2020
@YakDriver YakDriver added the partition/aws-us-gov Pertains to the aws-us-gov partition. label Sep 21, 2020
@YakDriver
Copy link
Member Author

YakDriver commented Sep 21, 2020

Should we note an AWS bug in the docs? This seems to uncover a bug in the AWS API. If DBParameterGroupFamily is set to a valid value, AWS does not return any versions. This holds true for AWS SDK Go and the AWS CLI:

% aws docdb describe-db-engine-versions --engine docdb \
 --query "DBEngineVersions[] [Engine, EngineVersion, DBParameterGroupFamily]" \
 --output text | sort -u
docdb	3.6.0	docdb3.6
% aws docdb describe-db-engine-versions --db-parameter-group-family docdb3.6
{
    "DBEngineVersions": []
}
% aws docdb describe-db-engine-versions --db-parameter-group-family docdb3.6 --engine docdb
{
    "DBEngineVersions": []
}
% aws docdb describe-db-engine-versions --db-parameter-group-family docdb3.6 --engine docdb --engine-version 3.6.0
{
    "DBEngineVersions": []
}
% aws docdb describe-db-engine-versions --engine docdb --engine-version 3.6.0 
{
    "DBEngineVersions": [
        {
            "Engine": "docdb",
            "EngineVersion": "3.6.0",
            "DBParameterGroupFamily": "docdb3.6",
            "DBEngineDescription": "Amazon DocumentDB (with MongoDB compatibility)",
            "DBEngineVersionDescription": "Amazon DocumentDB (with MongoDB compatibility)",
            "ValidUpgradeTarget": [],
            "ExportableLogTypes": [
                "audit",
                "profiler"
            ],
            "SupportsLogExportsToCloudwatchLogs": true
        }
    ]
}

Copy link
Contributor

@bflad bflad left a comment

Choose a reason for hiding this comment

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

Looks good! Similar comments as #15228 🚀

Output from acceptance testing:

--- PASS: TestAccAWSDocDBEngineVersionDataSource_defaultOnly (14.08s)
--- PASS: TestAccAWSDocDBEngineVersionDataSource_basic (14.11s)
--- PASS: TestAccAWSDocDBEngineVersionDataSource_preferred (14.28s)

aws/data_source_aws_docdb_engine_version.go Outdated Show resolved Hide resolved
website/docs/d/docdb_engine_version.markdown Outdated Show resolved Hide resolved
@YakDriver YakDriver added this to the v3.8.0 milestone Sep 23, 2020
@YakDriver YakDriver merged commit efd8cca into master Sep 23, 2020
@YakDriver YakDriver deleted the f-gov-docdb-eng-versions branch September 23, 2020 19:38
@ghost
Copy link

ghost commented Sep 24, 2020

This has been released in version 3.8.0 of the Terraform AWS provider. Please see the Terraform documentation on provider versioning or reach out if you need any assistance upgrading.

For further feature requests or bug reports with this functionality, please create a new GitHub issue following the template for triage. Thanks!

@ghost
Copy link

ghost commented Oct 24, 2020

I'm going to lock this issue because it has been closed for 30 days ⏳. This helps our maintainers find and focus on the active issues.

If you feel this issue should be reopened, we encourage creating a new issue linking back to this one for added context. Thanks!

@ghost ghost locked as resolved and limited conversation to collaborators Oct 24, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
documentation Introduces or discusses updates to documentation. new-data-source Introduces a new data source. partition/aws-us-gov Pertains to the aws-us-gov partition. provider Pertains to the provider itself, rather than any interaction with AWS. service/docdb Issues and PRs that pertain to the docdb service. size/XL Managed by automation to categorize the size of a PR. tests PRs: expanded test coverage. Issues: expanded coverage, enhancements to test infrastructure.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

d/docdb_engine_version: New data source
2 participants