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

merge changes #1

Merged
merged 1,515 commits into from
Oct 8, 2019
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
1515 commits
Select commit Hold shift + click to select a range
61efa2e
Wording changes from code review
ryndaniels Sep 16, 2019
1cec04a
Merge branch 'topfunky-patch-1'
ryndaniels Sep 16, 2019
c2feb10
Import test refactor for emr security config
ryndaniels Sep 16, 2019
22e9996
Import test refactor for ELBs
ryndaniels Sep 16, 2019
7df63fc
Merge pull request #9946 from pasali/f-aws-rate-limit
Ninir Sep 16, 2019
37169da
Update CHANGELOG.md
Ninir Sep 16, 2019
8d24ade
Update iam_policy.html.markdown
paultyng Sep 16, 2019
63fadb4
Revert "Update iam_policy.html.markdown" (#10123)
nywilken Sep 16, 2019
38fc3b9
Fix spot fleet request panic (#9836)
aeschright Sep 16, 2019
4879c29
Merge pull request #9863 from terraform-providers/rfd-retry-acm
ryndaniels Sep 17, 2019
f302753
Update CHANGELOG.md
ryndaniels Sep 17, 2019
ca35b5a
Merge pull request #10074 from terraform-providers/rfd-10065
ryndaniels Sep 17, 2019
609bf69
Update CHANGELOG.md
ryndaniels Sep 17, 2019
ed7a47f
Merge pull request #10101 from terraform-providers/rfd-at002-fsx
ryndaniels Sep 17, 2019
0e183c1
provider: Use real Terraform version in UA header
radeksimko Jul 31, 2019
bd14195
Update LocalStack r53 reference to route53
tlvince Sep 17, 2019
2f41175
DNS resolution for inter-region vpc peering.
ewbankkit Feb 15, 2019
2954561
Add missing eu-north-1 Amazon Redshift audit logging account ID (and …
Sep 17, 2019
21c1ec6
Merge pull request #10055 from terraform-providers/rfd-ssm-assn-import
ryndaniels Sep 18, 2019
e434b85
Update CHANGELOG.md
ryndaniels Sep 18, 2019
2e52c9f
resource/aws_globalaccelerator_endpoint_group: Fix import command on …
toVersus Sep 18, 2019
5ae5580
test/resource/aws_elb: use acctest.RandStringFromCharSet() instead of…
kangaechu Sep 18, 2019
1b8826e
Add support for S3 Object Lock legal holds, retention modes and reten…
Sep 18, 2019
862fb09
update CHANGELOG for #9942
nywilken Sep 18, 2019
e7646ea
Add python_version for glue jobs
mjuarez Jul 18, 2019
5875308
fix mispelling
mjuarez Jul 18, 2019
75fa4be
add validatefunc and properly flatten jobcommand
mjuarez Jul 22, 2019
e40a063
add in new test cases and computed python versions
mjuarez Aug 6, 2019
54f85b6
Merge pull request #9409 from mjuarez/glue_python_version
nywilken Sep 18, 2019
a02170e
update CHANGELOG for #9409
nywilken Sep 18, 2019
62d5318
Merge pull request #10077 from terraform-providers/rfd-at002-glue
ryndaniels Sep 19, 2019
53e15a2
Merge pull request #10102 from terraform-providers/rfd-at002-gamelift
ryndaniels Sep 19, 2019
e8a5d81
Merge pull request #10099 from terraform-providers/rfd-at002-glacier
ryndaniels Sep 19, 2019
95fb86d
Merge pull request #10119 from terraform-providers/rfd-at002-emr
ryndaniels Sep 19, 2019
8aa2cac
Merge pull request #10120 from terraform-providers/rfd-at002-elb
ryndaniels Sep 19, 2019
a21b1ff
Refactor: use acctest.RandStringFromCharSet() instead of randomString()
kangaechu Sep 19, 2019
51cfb49
Fix for missing return statement
obourdon Sep 19, 2019
204b859
Import test refactor for elastic transcoder preset
ryndaniels Sep 19, 2019
c643c74
Return ENI attachment from 'networkInterfaceAttachmentStateRefresh'.
ewbankkit Sep 19, 2019
0257db7
Use latest version of ENI data when attempting to detach.
ewbankkit Sep 19, 2019
f9a1f4b
updated the aws_iot_thing_type documentation to include the import step
riyasyash Sep 20, 2019
73663bf
Revert "resource/aws_acm_certificate: Retry logic refactor" (#10184)
nywilken Sep 20, 2019
7fe96bb
v2.29.0
Sep 20, 2019
7ad6f36
Cleanup after v2.29.0 release
Sep 20, 2019
965f3e9
fix: remove client-vpn endpoints from state when they are missing
GabrielCastro Sep 20, 2019
c2fb075
Update CHANGELOG for #10074
bflad Sep 23, 2019
7135acf
Merge pull request #10021 from terraform-providers/v-terraform-provid…
bflad Sep 23, 2019
6ebf15e
provider: Update default development and testing to Go 1.13
bflad Sep 23, 2019
4d4118b
Merge pull request #10206 from terraform-providers/f-go-1.13
bflad Sep 23, 2019
63afdd5
chore(deps): update module aws/aws-sdk-go to v1.24.4
renovate-bot Sep 23, 2019
8b19c44
Update CHANGELOG for #10206
bflad Sep 23, 2019
0d98f41
Merge pull request #10011 from terraform-providers/renovate/github.co…
bflad Sep 23, 2019
f4e3c0e
resource/aws_instance: Prevent panic when updating `credit_specificat…
bflad Sep 24, 2019
48f1b1a
tests/resource/aws_dx_gateway: Skip when associations (likely from ot…
bflad Sep 24, 2019
9d84c9b
Merge pull request #10214 from terraform-providers/t-aws_dx_gateway-s…
bflad Sep 24, 2019
4a3fc07
fix final backup property
jbruett Sep 24, 2019
9e938e5
resource/aws_wafregional_web_acl_association: Ensure missing resource…
bflad Sep 24, 2019
70cda0e
Merge pull request #10057 from terraform-providers/rfd-at002-kinesis
bflad Sep 24, 2019
90f6509
Merge pull request #10008 from terraform-providers/rfd-at002-rds
bflad Sep 24, 2019
086716c
Merge pull request #9904 from terraform-providers/rfd-at002-vpnconn
bflad Sep 24, 2019
4e2615d
Merge pull request #9984 from terraform-providers/rfd-at002-redshift
bflad Sep 24, 2019
f0a4490
Merge pull request #10162 from kangaechu/refactor-iam-role-policy
bflad Sep 24, 2019
d2c81d2
Merge pull request #10215 from jbruett/patch-3
bflad Sep 24, 2019
2f0ccc7
Merge pull request #9967 from terraform-providers/rfd-at002-r53
bflad Sep 24, 2019
68cc7fe
Merge branch 'fix/client-vpn-delete-fix' of ssh://github.com/GabrielC…
bflad Sep 24, 2019
99fac86
tests/resource/aws_ec2_client_vpn_endpoint: Ensure covering test for …
bflad Sep 24, 2019
551eeff
Merge branch 'GabrielCastro-fix/client-vpn-delete-fix'
bflad Sep 24, 2019
cd1240b
Update CHANGELOG for #10187
bflad Sep 24, 2019
70447fd
Merge pull request #10179 from riyasyash/master
bflad Sep 24, 2019
74450d0
Merge pull request #10059 from terraform-providers/rfd-at002-iot
bflad Sep 24, 2019
37dad35
Merge pull request #10043 from terraform-providers/rfd-at002-kms-only
bflad Sep 24, 2019
6b33bf5
Refactor: use acctest.RandStringFromCharSet() instead of randomString…
kangaechu Sep 24, 2019
3d8d77f
Merge pull request #10061 from terraform-providers/rfd-at002-internet
bflad Sep 24, 2019
798acad
Merge branch 'master' into rfd-at002-iam
bflad Sep 24, 2019
384ed2b
Merge branch 'refactor-10040-resource_aws_iam_user_policy' of ssh://g…
bflad Sep 24, 2019
c8ade4d
Merge branch 'rfd-at002-iam'
bflad Sep 24, 2019
fc41487
Merge pull request #10166 from terraform-providers/rfd-at002-elastict…
bflad Sep 24, 2019
fc735e8
Merge pull request #10165 from obourdon/fix-missing-return
bflad Sep 24, 2019
1f8efa5
Update CHANGELOG for #10165
bflad Sep 24, 2019
eaa676f
Add support Import for aws_sns_topic_policy resource
teraken0509 Sep 19, 2019
606f0ad
add tag on create for aws_sqs_queue resource
teraken0509 Sep 19, 2019
8c9ca47
Merge pull request #10134 from ewbankkit/issue-10129
bflad Sep 24, 2019
00441c7
Update CHANGELOG for #10134
bflad Sep 24, 2019
2913113
Merge pull request #10163 from kterada0509/feature/add-support-import…
bflad Sep 24, 2019
372d945
Update CHANGELOG for #10163
bflad Sep 24, 2019
02edb1b
Merge pull request #10156 from kterada0509/feature/add-support-tag-on…
bflad Sep 24, 2019
dc0a5c5
Update CHANGELOG for #10156
bflad Sep 24, 2019
98454a8
Fix presumed off-by-one in docs
tobypinder Sep 24, 2019
014e9aa
Merge pull request #10221 from tobypinder/patch-2
bflad Sep 24, 2019
94e6b9f
Merge pull request #10133 from tlvince/patch-1
bflad Sep 24, 2019
214d80f
Merge branch 'master' of ssh://github.com/RulerOf/terraform-provider-…
bflad Sep 24, 2019
47942a7
resource/aws_lightsail_static_ip_attachment: Add basic test for ip_ad…
bflad Sep 24, 2019
93ac0c3
Merge branch 'RulerOf-master'
bflad Sep 24, 2019
eeecfdb
Update CHANGELOG for #10109
bflad Sep 24, 2019
63d6329
Merge branch 'feature/add-sweeper-for-cleanup-aws_cloudwatch_log_reso…
bflad Sep 24, 2019
ab88758
tests/resource/aws_cloudwatch_log_resource_policy: Minor adjustments …
bflad Sep 24, 2019
6b5f138
Merge branch 'kterada0509-feature/add-sweeper-for-cleanup-aws_cloudwa…
bflad Sep 24, 2019
d096b02
Merge pull request #10087 from mungojam/patch-1
bflad Sep 24, 2019
ca8ed81
Merge pull request #10086 from chroju/fix/small_typo_in_aws_route_tab…
bflad Sep 24, 2019
5463137
Merge pull request #10082 from kennethtxytqw/patch-1
bflad Sep 24, 2019
21bdc1e
Merge pull request #10067 from mattolenik/fix-sg-rule-doc
bflad Sep 24, 2019
eeb459b
Merge pull request #10212 from terraform-providers/b-aws_instance-cre…
bflad Sep 24, 2019
190a0b8
Update CHANGELOG for #10212
bflad Sep 24, 2019
e713b84
Merge pull request #10103 from terraform-providers/rfd-placement-group
bflad Sep 24, 2019
9bdb6d4
Update CHANGELOG for #10103
bflad Sep 24, 2019
17e7e5c
Merge pull request #9909 from othree/patch-1
bflad Sep 24, 2019
1671caf
Merge pull request #9894 from digitalfiz/patch-1
bflad Sep 24, 2019
119c1c7
Merge pull request #9759 from beatak/fix-document-lambda-layer-version
bflad Sep 24, 2019
26736b0
Merge branch 'master' into resource_aws_elastic_beanstalk_environment…
Sep 24, 2019
e649f1d
Update documentation for the Elasticbeanstalk Environment attributes
Sep 24, 2019
ddf4698
Merge pull request #10015 from xsalazar/resource_aws_elastic_beanstal…
bflad Sep 24, 2019
98dfcb0
Update CHANGELOG for #10015
bflad Sep 24, 2019
ae3c8c5
Merge pull request #9344 from ewaltman/patch-1
bflad Sep 24, 2019
6fe866b
test/resource/aws_s3_bucket: Add EMR bootstrap prefix to sweeper list…
nywilken Sep 24, 2019
efe796b
Merge pull request #8587 from acburdine/r/appsync-additional-auth
bflad Sep 25, 2019
e672d0a
Update CHANGELOG for #8587
bflad Sep 25, 2019
a2f6924
Refactor: use acctest.RandStringFromCharSet() instead of randomString…
kangaechu Sep 25, 2019
401984e
Update module golangci/golangci-lint to v1.19.1 (#10236)
renovate[bot] Sep 25, 2019
9621e83
tests/provider: Remove gogetcookie.sh as Go 1.13 uses proxy by default
bflad Sep 25, 2019
6321876
service/waf: Only wrap errors returned by GetChangeToken in RetryWith…
bflad Sep 25, 2019
7a804af
resource/aws_cloudfront_distribution: Migrate flatmap package interna…
bflad Sep 25, 2019
904bb6f
provider: Add -count 1 to testacc Makefile target to prevent issues w…
bflad Sep 25, 2019
1dc4c89
aws/internal/flatmap: go fmt
bflad Sep 25, 2019
84396c3
Merge pull request #9570 from terraform-providers/f-user-agent
bflad Sep 25, 2019
59770ed
Update CHANGELOG for #9570
bflad Sep 25, 2019
983760b
resource/aws_opsworks_stack: Switch custom Opsworks client User-Agent…
bflad Sep 25, 2019
42f7b0e
Merge pull request #10245 from terraform-providers/td-testacc-test-ca…
bflad Sep 25, 2019
0565888
Merge pull request #10246 from terraform-providers/td-opsworks-terraf…
bflad Sep 25, 2019
0085e58
Update CHANGELOG for #10246
bflad Sep 25, 2019
2a3edc2
Merge pull request #10244 from terraform-providers/td-move-flatmap
bflad Sep 25, 2019
9eac12c
Merge pull request #10240 from terraform-providers/td-remove-gogetcookie
bflad Sep 25, 2019
b67db6d
small documentation fix
liath Sep 25, 2019
a3686f0
resource_aws_efs_filesystem: create tags when resource is created
mildwonkey Sep 26, 2019
2659d80
Update module aws/aws-sdk-go to v1.25.0
renovate-bot Sep 26, 2019
2a97123
v2.30.0
Sep 26, 2019
70b2408
Cleanup after v2.30.0 release
Sep 26, 2019
72f0b71
Merge pull request #10242 from terraform-providers/b-waf-retrywithtok…
bflad Sep 27, 2019
fe488e4
Update CHANGELOG for #10242
bflad Sep 27, 2019
c0b241a
Merge pull request #10024 from terraform-providers/v-terraform-provid…
bflad Sep 27, 2019
7d8103b
tests/data-source/aws_lb_listener: Use internal implementation for TL…
bflad Sep 27, 2019
75f1153
deps: Override renovate semanticCommits auto-detection by always disa…
bflad Sep 27, 2019
45a834c
Merge pull request #10230 from terraform-providers/renovate/github.co…
bflad Sep 27, 2019
64e8ef9
Merge pull request #10254 from terraform-providers/mildwonkey/f-efs-t…
bflad Sep 27, 2019
3117a29
Update CHANGELOG for #10254
bflad Sep 27, 2019
c80a2d1
resource/aws_mq_broker: Add encryption_options configuration block (s…
bflad Sep 27, 2019
ba26b1f
Update module aws/aws-sdk-go to v1.25.1
renovate-bot Sep 27, 2019
7f40dfc
Merge branch 'issue-6730' of ssh://github.com/ewbankkit/terraform-pro…
bflad Sep 27, 2019
099bf0b
Merge branch 'ewbankkit-issue-6730'
bflad Sep 27, 2019
3036fc8
Update CHANGELOG for #7627
bflad Sep 27, 2019
7a94b4d
Merge pull request #10277 from terraform-providers/renovate/github.co…
bflad Sep 27, 2019
cec0382
docs/resource/aws_mq_broker: Clarify kms_key_id drift detection state…
bflad Sep 27, 2019
ad26bea
Merge pull request #10276 from terraform-providers/f-aws_mq_broker-kms
bflad Sep 27, 2019
835c9e3
Update CHANGELOG for #10276
bflad Sep 27, 2019
99f93a1
Merge pull request #10249 from Liath/patch-1
bflad Sep 27, 2019
e8c5cd2
Merge pull request #10266 from terraform-providers/td-renovate-semant…
bflad Sep 28, 2019
8c3b0a3
provider: New shared libary for managing resource tags
bflad Sep 3, 2019
ea9bfeb
resource/aws_athena_workgroup: Refactor to use keyvaluetags
bflad Sep 3, 2019
6bad392
internal/keyvaluetags/generators: Adjust README content to include li…
bflad Sep 3, 2019
3d99d3f
resource/aws_athena_workgroup: Ensure we check tags attribute setting…
bflad Sep 6, 2019
6a3765b
internal/keyvaluetags: Implement IgnoreRds for Neptune and RDS
bflad Sep 8, 2019
06a7089
Merge pull request #10238 from kangaechu/refactor-10040-resource_aws_…
bflad Sep 28, 2019
9707dd5
tests/resource/aws_acm_certificate: Use internal implementation for T…
bflad Sep 28, 2019
ffd489c
tests/resource/aws_cloudfront_distribution: Use internal implementati…
bflad Sep 28, 2019
c558b34
tests/resource/aws_ec2_client_vpn_network_association: Use internal i…
bflad Sep 28, 2019
40ce50b
tests/resource/aws_ec2_client_vpn_endpoint: Use internal implementati…
bflad Sep 28, 2019
803d5cc
remove sidebar_current from docs website
ldhenry Sep 29, 2019
5d2c45d
tests/resource/aws_elb: Use internal implementation for TLS key/certi…
bflad Sep 29, 2019
3e444a4
tests/resource/aws_load_balancer_backend_server_policy: Use internal …
bflad Sep 29, 2019
60c055f
provider: Ensure aws_load_balancer* pull request files are labeled wi…
bflad Sep 29, 2019
6c9e722
tests/resource/aws_ebs_snapshot_copy: Refactoring to remove inconsist…
bflad Sep 29, 2019
ab43e80
resource/aws_lb_listener_certificate: Retry CertificateNotFound error…
bflad Sep 29, 2019
99ab002
tests/resource/aws_listener_rule: Use internal implementation for TLS…
bflad Sep 29, 2019
b4c02f9
tests/resource/aws_lb_listener: Use internal implementation for TLS k…
bflad Sep 29, 2019
1005e17
tests/resource/aws_lb_ssl_negotiation_policy: Use internal implementa…
bflad Sep 30, 2019
3e61dea
Merge pull request #10018 from terraform-providers/f-keyvaluetags
bflad Sep 30, 2019
044dbd7
internal/keyvaluetags: Support eks service
bflad Sep 30, 2019
bcc476b
Merge pull request #10216 from terraform-providers/b-aws_wafregional_…
bflad Sep 30, 2019
e805aa7
Update CHANGELOG for #10216
bflad Sep 30, 2019
a2396eb
Merge pull request #10260 from terraform-providers/td-aws_lb_listener…
bflad Sep 30, 2019
c45052f
Merge pull request #10284 from terraform-providers/t-aws_acm_certific…
bflad Sep 30, 2019
7691919
Merge pull request #10285 from terraform-providers/t-aws_cloudfront_d…
bflad Sep 30, 2019
406fdf7
Merge pull request #10286 from terraform-providers/t-aws_ec2_client_v…
bflad Sep 30, 2019
dae988c
Merge pull request #10287 from terraform-providers/t-aws_ec2_client_v…
bflad Sep 30, 2019
3314688
Merge pull request #10289 from terraform-providers/t-aws_elb-remove-t…
bflad Sep 30, 2019
aaa8d71
Merge pull request #10291 from terraform-providers/t-aws_load_balance…
bflad Sep 30, 2019
9bdcb50
Merge pull request #10292 from terraform-providers/td-aws_load_balanc…
bflad Sep 30, 2019
a065efa
Merge pull request #10293 from terraform-providers/t-aws_ebs_snapshot…
bflad Sep 30, 2019
b8f13dc
Merge pull request #10294 from terraform-providers/t-aws_lb_listener_…
bflad Sep 30, 2019
9a000d2
Update CHANGELOG for #10294
bflad Sep 30, 2019
3a5bc83
Merge pull request #10295 from terraform-providers/t-aws_lb_listener_…
bflad Sep 30, 2019
c785891
Merge pull request #10299 from terraform-providers/t-aws_lb_ssl_negot…
bflad Sep 30, 2019
6a19b22
resource/aws_eks_cluster: Add tags argument
bflad Sep 30, 2019
da73396
tests/service/apigateway: Use internal implementation for TLS key/cer…
bflad Sep 29, 2019
052093c
data-source/aws_eks_cluster: Add tags attribute
bflad Sep 30, 2019
4628376
Add link to Lambda APIGW guide
robin-norwood Sep 30, 2019
9b45620
Merge pull request #10311 from robin-norwood/rln-add-lambda-api-gatew…
bflad Sep 30, 2019
688c305
Merge pull request #10288 from ldhenry/ldhenry/remove-sidebar_current
bflad Sep 30, 2019
8b88f68
internal/keyvaluetags: Generate Ec2UpdateTags
bflad Oct 1, 2019
a23d496
resource/aws_vpc: Refactor to use keyvaluetags and call Read after Cr…
bflad Oct 1, 2019
5bc8d80
tests/resource/aws_waf_web_acl: Add sweeper
bflad Oct 1, 2019
2c5e5d4
provider: Remove hashibot pull request labeling of old tags filenames
bflad Oct 1, 2019
8cf35a5
Merge branch 'issue-10044' of ssh://github.com/ewbankkit/terraform-pr…
bflad Oct 1, 2019
4c80e66
Merge pull request #10326 from terraform-providers/td-tags-pr-labels
bflad Oct 2, 2019
ce20280
Merge pull request #10323 from terraform-providers/t-aws_waf_web_acl-…
bflad Oct 2, 2019
048114b
docs(r/transfer_server): add default endpoint_type
ChristianAlexander Oct 2, 2019
1430537
Add Amazon Forecast service client.
Oct 2, 2019
747ebb8
Update module aws/aws-sdk-go to v1.25.4
renovate-bot Oct 2, 2019
0c6a1ec
resource/api_gateway_integration: Use lambda invoke_url in docs
WhileLoop Oct 2, 2019
22aa9f3
resource/aws_s3_bucket_object: Fix object deletion for non-versioned …
nywilken Oct 1, 2019
030d001
test/provider: Add Provider with AssumeRole Policy support
nywilken Oct 1, 2019
8e9ac6c
resource/aws_ssm_association: Fix instance_id attribute documentation
WhileLoop Oct 2, 2019
09596a0
service/ec2: Updated handling for Lambda Hyperplane ENIs
bflad Oct 2, 2019
0eaf7bf
aws_api_gateway_method: document request_parameters
ikonst Oct 2, 2019
85be253
Merge pull request #10307 from terraform-providers/f-eks-tagging
bflad Oct 3, 2019
1c79e1b
Update CHANGELOG for #10307
bflad Oct 3, 2019
2ed3e2f
Fix ordering for #10307 CHANGELOG
bflad Oct 3, 2019
a283bee
Fix #10254 CHANGELOG typo
bflad Oct 3, 2019
6f0da98
Merge pull request #10352 from terraform-providers/b-aws_s3_bucket_ob…
bflad Oct 3, 2019
765c29b
Update CHANGELOG for #10352
bflad Oct 3, 2019
3f8a83e
Merge pull request #10349 from ewbankkit/add-forecast-service-client
bflad Oct 3, 2019
cf6082b
Merge pull request #10310 from terraform-providers/renovate/github.co…
bflad Oct 3, 2019
d9102b1
Merge pull request #10347 from terraform-providers/ewbankkit-issue-10044
bflad Oct 3, 2019
279917a
Update CHANGELOG for #10114 and #10347
bflad Oct 3, 2019
b2fa4de
Merge pull request #10351 from WhileLoop/r-api_gateway_integration-do…
bflad Oct 3, 2019
f9bcd8e
Merge pull request #10353 from WhileLoop/r-aws_ssm_association-fix-in…
bflad Oct 3, 2019
e123920
Merge pull request #10354 from ikonst/patch-1
bflad Oct 3, 2019
27c2e50
Merge pull request #10359 from ChristianAlexander/aws_transfer_server…
bflad Oct 3, 2019
f106998
Add Amazon QLDB service client.
Oct 3, 2019
f8707a4
v2.31.0
Oct 3, 2019
091e276
Cleanup after v2.31.0 release
Oct 3, 2019
06546b7
Merge pull request #10364 from ewbankkit/add-qldb-service-client
bflad Oct 3, 2019
acc6a21
deps: Migrate from github.com/hashicorp/terraform to github.com/hashi…
bflad Oct 3, 2019
ebf4eac
tests/provider: Update errcheck ignore from github.com/hashicorp/terr…
bflad Oct 3, 2019
98b8b84
Merge pull request #10367 from terraform-providers/v-terraform-plugin…
bflad Oct 3, 2019
d7cfb44
provider: Add hashibot deprecated_import_commenter for terraform-plug…
bflad Oct 3, 2019
0645d7e
Merge pull request #10372 from terraform-providers/hashibot-terraform…
bflad Oct 3, 2019
5e70f02
test/resource/aws_iam_role: Update sweeper prefix list (#10369)
nywilken Oct 3, 2019
15b97e2
provider: Update hashibot Terraform Plugin SDK migration comment wording
bflad Oct 3, 2019
8d319bd
Update CHANGELOG for #10310 (v2.31.0 fixes)
bflad Oct 3, 2019
b297ae3
Merge pull request #10375 from terraform-providers/hashibot-sdk-migra…
bflad Oct 4, 2019
6803a54
resource/aws_s3_bucket: Prevent infinite deletion recursion with forc…
bflad Oct 4, 2019
7cf9a52
tests/resource/aws_cloudtrail: Remove troublesome slash prefix (#10229)
nywilken Oct 4, 2019
666a205
Merge pull request #10035 from terraform-providers/td-aws_elasticsear…
bflad Oct 4, 2019
a00139b
Merge pull request #10388 from terraform-providers/b-aws_s3_bucket-fo…
bflad Oct 4, 2019
e4c3975
Update CHANGELOG for #10388
bflad Oct 4, 2019
e94c64a
Update CHANGELOG for #10367
bflad Oct 4, 2019
c6d88db
Merge branch 'master' into td-vpc-keyvaluetags
bflad Oct 7, 2019
007e56e
Merge pull request #10315 from terraform-providers/td-vpc-keyvaluetags
bflad Oct 7, 2019
8059288
Merge pull request #10305 from terraform-providers/t-aws_lb_listener-…
bflad Oct 7, 2019
be01d68
Merge pull request #10306 from terraform-providers/t-aws_api_gateway_…
bflad Oct 7, 2019
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
The diff you're trying to view is too large. We only load the first 3000 changed files.
112 changes: 106 additions & 6 deletions .github/CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ ability to merge PRs and respond to issues.
- [Checklists for Contribution](#checklists-for-contribution)
- [Documentation Update](#documentation-update)
- [Enhancement/Bugfix to a Resource](#enhancementbugfix-to-a-resource)
- [Adding Resource Import Support](#adding-resource-import-support)
- [New Resource](#new-resource)
- [New Service](#new-service)
- [New Region](#new-region)
Expand All @@ -36,6 +37,7 @@ ability to merge PRs and respond to issues.
- [Running an Acceptance Test](#running-an-acceptance-test)
- [Writing an Acceptance Test](#writing-an-acceptance-test)
- [Writing and running Cross-Account Acceptance Tests](#writing-and-running-cross-account-acceptance-tests)
- [Writing and running Cross-Region Acceptance Tests](#writing-and-running-cross-region-acceptance-tests)

<!-- /TOC -->

Expand Down Expand Up @@ -199,6 +201,18 @@ guidelines.
folder. This is to avoid conflicts as the vendor versions tend to be fast-
moving targets. We will plan to merge the PR with this change first.

#### Adding Resource Import Support

Adding import support for Terraform resources will allow existing infrastructure to be managed within Terraform. This type of enhancement generally requires a small to moderate amount of code changes.

Comprehensive code examples and information about resource import support can be found in the [Extending Terraform documentation](https://www.terraform.io/docs/extend/resources/import.html).

In addition to the below checklist and the items noted in the Extending Terraform documentation, please see the [Common Review Items](#common-review-items) sections for more specific coding and testing guidelines.

- [ ] _Resource Code Implementation_: In the resource code (e.g. `aws/resource_aws_service_thing.go`), implementation of `Importer` `State` function
- [ ] _Resource Acceptance Testing Implementation_: In the resource acceptance testing (e.g. `aws/resource_aws_service_thing_test.go`), implementation of `TestStep`s with `ImportState: true`
- [ ] _Resource Documentation Implementation_: In the resource documentation (e.g. `website/docs/r/service_thing.html.markdown`), addition of `Import` documentation section at the bottom of the page

#### New Resource

Implementing a new resource is a good way to learn more about how Terraform
Expand All @@ -216,9 +230,22 @@ guidelines.
covering their behavior. See [Writing Acceptance
Tests](#writing-acceptance-tests) below for a detailed guide on how to
approach these.
- [ ] __Naming__: Resources should be named `aws_<service>_<name>` where
`service` is the AWS short service name and `name` is a short, preferably
single word, description of the resource. Use `_` as a separator.
- [ ] __Resource Naming__: Resources should be named `aws_<service>_<name>`,
using underscores (`_`) as the separator. Resources are namespaced with the
service name to allow easier searching of related resources, to align
the resource naming with the service for [Customizing Endpoints](https://www.terraform.io/docs/providers/aws/guides/custom-service-endpoints.html#available-endpoint-customizations),
and to prevent future conflicts with new AWS services/resources.
For reference:

- `service` is the AWS short service name that matches the entry in
`endpointServiceNames` (created via the [New Service](#new-service)
section)
- `name` represents the conceptual infrastructure represented by the
create, read, update, and delete methods of the service API. It should
be a singular noun. For example, in an API that has methods such as
`CreateThing`, `DeleteThing`, `DescribeThing`, and `ModifyThing` the name
of the resource would end in `_thing`.

- [ ] __Arguments_and_Attributes__: The HCL for arguments and attributes should
mimic the types and structs presented by the AWS API. API arguments should be
converted from `CamelCase` to `camel_case`.
Expand Down Expand Up @@ -290,9 +317,9 @@ manually sourced values from documentation.

- [ ] Check [Regions and Endpoints ELB regions](https://docs.aws.amazon.com/general/latest/gr/rande.html#elb_region) and add Route53 Hosted Zone ID if available to `aws/data_source_aws_elb_hosted_zone_id.go`
- [ ] Check [Regions and Endpoints S3 website endpoints](https://docs.aws.amazon.com/general/latest/gr/rande.html#s3_website_region_endpoints) and add Route53 Hosted Zone ID if available to `aws/hosted_zones.go`
- [ ] Check [CloudTrail Supported Regions docs](https://docs.aws.amazon.com/awscloudtrail/latest/userguide/cloudtrail-supported-regions.html) and add AWS Account ID if available to `aws/data_source_aws_cloudtrail_service_account.go`
- [ ] Check [CloudTrail Supported Regions docs](https://docs.aws.amazon.com/awscloudtrail/latest/userguide/cloudtrail-supported-regions.html#cloudtrail-supported-regions) and add AWS Account ID if available to `aws/data_source_aws_cloudtrail_service_account.go`
- [ ] Check [Elastic Load Balancing Access Logs docs](https://docs.aws.amazon.com/elasticloadbalancing/latest/classic/enable-access-logs.html#attach-bucket-policy) and add Elastic Load Balancing Account ID if available to `aws/data_source_aws_elb_service_account.go`
- [ ] Check [Redshift Database Audit Logging docs](https://docs.aws.amazon.com/redshift/latest/mgmt/db-auditing.html) and add AWS Account ID if available to `aws/data_source_aws_redshift_service_account.go`
- [ ] Check [Redshift Database Audit Logging docs](https://docs.aws.amazon.com/redshift/latest/mgmt/db-auditing.html#db-auditing-bucket-permissions) and add AWS Account ID if available to `aws/data_source_aws_redshift_service_account.go`
- [ ] Check [Regions and Endpoints Elastic Beanstalk](https://docs.aws.amazon.com/general/latest/gr/rande.html#elasticbeanstalk_region) and add Route53 Hosted Zone ID if available to `aws/data_source_aws_elastic_beanstalk_hosted_zone.go`

### Common Review Items
Expand All @@ -314,14 +341,15 @@ The following Go language resources provide common coding preferences that may b

#### Resource Contribution Guidelines

The following resource checks need to be addressed before your contribution can be merged. The exclusion of any applicable check may result in a delayed time to merge.
The following resource checks need to be addressed before your contribution can be merged. The exclusion of any applicable check may result in a delayed time to merge.

- [ ] __Passes Testing__: All code and documentation changes must pass unit testing, code linting, and website link testing. Resource code changes must pass all acceptance testing for the resource.
- [ ] __Avoids API Calls Across Account, Region, and Service Boundaries__: Resources should not implement cross-account, cross-region, or cross-service API calls.
- [ ] __Avoids Optional and Required for Non-Configurable Attributes__: Resource schema definitions for read-only attributes should not include `Optional: true` or `Required: true`.
- [ ] __Avoids resource.Retry() without resource.RetryableError()__: Resource logic should only implement [`resource.Retry()`](https://godoc.org/github.com/hashicorp/terraform/helper/resource#Retry) if there is a retryable condition (e.g. `return resource.RetryableError(err)`).
- [ ] __Avoids Resource Read Function in Data Source Read Function__: Data sources should fully implement their own resource `Read` functionality including duplicating `d.Set()` calls.
- [ ] __Avoids Reading Schema Structure in Resource Code__: The resource `Schema` should not be read in resource `Create`/`Read`/`Update`/`Delete` functions to perform looping or otherwise complex attribute logic. Use [`d.Get()`](https://godoc.org/github.com/hashicorp/terraform/helper/schema#ResourceData.Get) and [`d.Set()`](https://godoc.org/github.com/hashicorp/terraform/helper/schema#ResourceData.Set) directly with individual attributes instead.
- [ ] __Avoids ResourceData.GetOkExists()__: Resource logic should avoid using [`ResourceData.GetOkExists()`](https://godoc.org/github.com/hashicorp/terraform/helper/schema#ResourceData.GetOkExists) as its expected functionality is not guaranteed in all scenarios.
- [ ] __Implements Read After Create and Update__: Except where API eventual consistency prohibits immediate reading of resources or updated attributes, resource `Create` and `Update` functions should return the resource `Read` function.
- [ ] __Implements Immediate Resource ID Set During Create__: Immediately after calling the API creation function, the resource ID should be set with [`d.SetId()`](https://godoc.org/github.com/hashicorp/terraform/helper/schema#ResourceData.SetId) before other API operations or returning the `Read` function.
- [ ] __Implements Attribute Refreshes During Read__: All attributes available in the API should have [`d.Set()`](https://godoc.org/github.com/hashicorp/terraform/helper/schema#ResourceData.Set) called their values in the Terraform state during the `Read` function.
Expand Down Expand Up @@ -358,6 +386,7 @@ The following resource checks need to be addressed before your contribution can
```

- [ ] __Uses resource.NotFoundError__: Custom errors for missing resources should use [`resource.NotFoundError`](https://godoc.org/github.com/hashicorp/terraform/helper/resource#NotFoundError).
- [ ] __Uses resource.UniqueId()__: API fields for concurrency protection such as `CallerReference` and `IdempotencyToken` should use [`resource.UniqueId()`](https://godoc.org/github.com/hashicorp/terraform/helper/resource#UniqueId). The implementation includes a monotonic counter which is safer for concurrent operations than solutions such as `time.Now()`.
- [ ] __Skips Exists Function__: Implementing a resource `Exists` function is extraneous as it often duplicates resource `Read` functionality. Ensure `d.SetId("")` is used to appropriately trigger resource recreation in the resource `Read` function.
- [ ] __Skips id Attribute__: The `id` attribute is implicit for all Terraform resources and does not need to be defined in the schema.

Expand Down Expand Up @@ -720,6 +749,77 @@ export AWS_ALTERNATE_ACCESS_KEY_ID=...
export AWS_ALTERNATE_SECRET_ACCESS_KEY=...
```

#### Writing and running Cross-Region Acceptance Tests

When testing requires AWS infrastructure in a second AWS region, the below changes to the normal setup will allow the management or reference of resources and data sources across regions:

- In the `PreCheck` function, include `testAccMultipleRegionsPreCheck(t)` and `testAccAlternateRegionPreCheck(t)` to ensure a standardized set of information is required for cross-region testing configuration. If the infrastructure in the second AWS region is also in a second AWS account also include `testAccAlternateAccountPreCheck(t)`
- Declare a `providers` variable at the top of the test function: `var providers []*schema.Provider`
- Switch usage of `Providers: testAccProviders` to `ProviderFactories: testAccProviderFactories(&providers)`
- Add `testAccAlternateRegionProviderConfig()` to the test configuration and use `provider = "aws.alternate"` for cross-region resources. The resource that is the focus of the acceptance test should _not_ use the provider alias to simplify the testing setup. If the infrastructure in the second AWS region is also in a second AWS account use `testAccAlternateAccountAlternateRegionProviderConfig()` instead
- For any `TestStep` that includes `ImportState: true`, add the `Config` that matches the previous `TestStep` `Config`

An example acceptance test implementation can be seen below:

```go
func TestAccAwsExample_basic(t *testing.T) {
var providers []*schema.Provider
resourceName := "aws_example.test"

resource.ParallelTest(t, resource.TestCase{
PreCheck: func() {
testAccPreCheck(t)
testAccMultipleRegionsPreCheck(t)
testAccAlternateRegionPreCheck(t)
},
ProviderFactories: testAccProviderFactories(&providers),
CheckDestroy: testAccCheckAwsExampleDestroy,
Steps: []resource.TestStep{
{
Config: testAccAwsExampleConfig(),
Check: resource.ComposeTestCheckFunc(
testAccCheckAwsExampleExists(resourceName),
// ... additional checks ...
),
},
{
Config: testAccAwsExampleConfig(),
ResourceName: resourceName,
ImportState: true,
ImportStateVerify: true,
},
},
})
}

func testAccAwsExampleConfig() string {
return testAccAlternateRegionProviderConfig() + fmt.Sprintf(`
# Cross region resources should be handled by the cross region provider.
# The standardized provider alias is aws.alternate as seen below.
resource "aws_cross_region_example" "test" {
provider = "aws.alternate"

# ... configuration ...
}

# The resource that is the focus of the testing should be handled by the default provider,
# which is automatically done by not specifying the provider configuration in the resource.
resource "aws_example" "test" {
# ... configuration ...
}
`)
}
```

Searching for usage of `testAccAlternateRegionPreCheck` in the codebase will yield real world examples of this setup in action.

Running these acceptance tests is the same as before, except if an AWS region other than the default alternate region - `us-east-1` - is required,
in which case the following additional configuration information is required:

```sh
export AWS_ALTERNATE_REGION=...
```

[website]: https://github.com/terraform-providers/terraform-provider-aws/tree/master/website
[acctests]: https://github.com/hashicorp/terraform#acceptance-tests
[ml]: https://groups.google.com/group/terraform-tool
Loading