8000 Elasticsearch provider by haegrr · Pull Request #13238 · hashicorp/terraform · GitHub
[go: up one dir, main page]

Skip to content

Elasticsearch provider #13238

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

Closed
wants to merge 322 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
322 commits
Select commit Hold shift + click to select a range
d618975
provider/aws: Preserve default retain_on_delete in cloudfront import …
stack72 Mar 31, 2017
d3901fd
Update CHANGELOG.md
stack72 Mar 31, 2017
7a98030
provider/aws: Refresh aws_alb_target_group tags (#13200)
stack72 Mar 31, 2017
b08fa70
Update CHANGELOG.md
stack72 Mar 31, 2017
1633cd8
provider/aws: Set aws_vpn_connection to recreate when in deleted stat…
stack72 Mar 31, 2017
a092e77
Update CHANGELOG.md
stack72 Mar 31, 2017
a3e570c
provider/aws: Wait for aws_opsworks_instance to be running when it's …
stack72 Mar 31, 2017
88396c7
Update CHANGELOG.md
stack72 Mar 31, 2017
da22a06
Improved sentence based on feedback
fillup Mar 31, 2017
5a48daf
Make the external test work on more environments
zimbatm Mar 31, 2017
b9f1bb2
Handle the case when issue labels already exist
sethvargo Mar 29, 2017
097c15e
Add test
sethvargo Mar 31, 2017
4beccfe
provider/aws: Added API Gateway integration update (#13249)
Ninir Mar 31, 2017
398c8ce
Update CHANGELOG.md
stack72 Mar 31, 2017
0cb41cc
backend/remote-state: Add support for assume role extensions to s3 ba…
stack72 Mar 31, 2017
2af9ac2
Update CHANGELOG.md
stack72 Mar 31, 2017
a305b8d
provider/aws: change kinesis_firehose_delivery_stream to point to cor…
stack72 Mar 31, 2017
08c250d
Add support for aws_subnet_ids as a data source
cwood Mar 30, 2017
23f771f
Add `name_prefix` to RDS resources (#13232)
joshuaspence Mar 31, 2017
a5a4da2
Update CHANGELOG.md
stack72 Mar 31, 2017
832b3d6
Fix accpetence test to work
cwood Mar 31, 2017
3c401d5
Add documentation about aws_subnet_ids
cwood Mar 31, 2017
a60c4eb
deps: Update github.com/joyent/triton-go/authentication (#13255)
jen20 Mar 31, 2017
8ae4d91
don't delete local state on a local backend
jbardin Mar 31, 2017
0f53670
Update CHANGELOG.md
radeksimko Mar 31, 2017
34439b9
provider/aws: Implement aws_ses_domain_identity (#13098)
dougneal Apr 1, 2017
65d96fb
Update CHANGELOG.md
radeksimko Apr 1, 2017
eec9ee1
provider/aws: handle aws_lambda_function missing s3 key error (#10960)
kung-foo Apr 1, 2017
ec41de0
Update CHANGELOG.md
radeksimko Apr 1, 2017
b3a9f97
provider/aws: Validate aws_ecs_task_definition.container_definitions …
minamijoyo Apr 1, 2017
2507e25
Update CHANGELOG.md
radeksimko Apr 1, 2017
2fe453e
All states are lockers
jbardin Mar 31, 2017
4339185
remove extra state.Locker assertions
jbardin Mar 31, 2017
9e4eb8c
add state.LockWithContext
jbardin Mar 31, 2017
6701906
Have the clistate Lock use LockWithContext
jbardin Apr 1, 2017
d631dad
provide contexts to clistate.Lock calls
jbardin Apr 1, 2017
1c86d9d
move force-unlock to plumbing
jbardin Apr 1, 2017
8ad0ed3
add cli flags for -lock-timeout
jbardin Apr 1, 2017
8700cf0
give LockWithContext a little backoff
jbardin Apr 1, 2017
51017b4
provider/aws: Fixup AWS db instance acceptance tests with default sec…
stack72 Apr 2, 2017
486d595
If `aws_s3_bucket` logging options are cleared on the AWS side, Terra…
ameir Apr 3, 2017
09e3c05
Fix small typo
lagartoflojo Apr 3, 2017
297b2c0
provider/aws: Set stickiness to computed in alb_target_group (#13278)
stack72 Apr 3, 2017
fac31ed
Update CHANGELOG.md
stack72 Apr 3, 2017
592def2
Update documentation to reflect reality
ahoka Apr 3, 2017
a844f56
Removed random provider frm iam policy attachment test
mbfrahry Apr 3, 2017
db24346
test LockWithContext
jbardin Apr 3, 2017
8c52de6
test -lock-timeout from cli
jbardin Apr 3, 2017
ef41e3e
Fix typo
pradeepbhadani Apr 3, 2017
44bdf4c
Fix typo
pradeepbhadani Apr 3, 2017
6677b5a
Fix typo
pradeepbhadani Apr 3, 2017
e454ed8
randomizes all bgp_asn values
mbfrahry Apr 3, 2017
3badfd1
dont dereference pointers on Set
grubernaut Apr 3, 2017
d8651be
add bullets to website docs
grubernaut Apr 3, 2017
0d618ce
Update CHANGELOG.md
grubernaut Apr 3, 2017
13eca81
remove Sleep from TestLockWithContext
jbardin Apr 3, 2017
87cdea5
final fix after merge with master
mbfrahry Apr 3, 2017
e20a58a
Update CHANGELOG.md
apparentlymart Apr 3, 2017
44f751d
Add `min_size` and `max_size` ASG fields (#13312)
CaseyLeask Apr 4, 2017
eb834b3
provider/aws: Updating the Elastic MapReduce Cluster Instance Group D…
tombuildsstuff Apr 4, 2017
2978eeb
aws: Randomize IAM policy name in acc test
radeksimko Apr 4, 2017
eb4d4ca
provider/aws: Support ip_address_type for aws_alb (#13227)
stack72 Apr 4, 2017
029069f
Update CHANGELOG.md
stack72 Apr 4, 2017
4f484c8
Fixed typo
marccardinal Apr 4, 2017
d78b376
Changed output type of ips variable of ip_block ProfitBricks resource…
Apr 4, 2017
dcbd992
Update CHANGELOG.md
stack72 Apr 4, 2017
dfdf8fd
provider/aws: Improve logging & docs for caller_identity (#13316)
radeksimko Apr 4, 2017
720224d
command/hook_ui: Increase max length of state IDs (#13317)
radeksimko Apr 4, 2017
15aad91
Update CHANGELOG.md
radeksimko Apr 4, 2017
85ac72f
provider/aws: Increase timeout for deploying cloudfront distribution …
radeksimko Apr 4, 2017
bf3cdf8
Update CHANGELOG.md
radeksimko Apr 4, 2017
4d6df55
provider/aws: Increase AMI retry timeouts (#13324)
radeksimko Apr 4, 2017
fa57b95
Update CHANGELOG.md
radeksimko Apr 4, 2017
0ec7af2
provider/aws: Recreate opsworks_stack on change of service_role_arn (…
stack72 Apr 4, 2017
4495f2b
Update CHANGELOG.md
stack72 Apr 4, 2017
7f5e85b
Removed newline from keybase username
mbfrahry Apr 4, 2017
1cd759e
core: Input walk shouldn't clobber dynamic provider config
apparentlymart Apr 3, 2017
3785e79
Update CHANGELOG.md
apparentlymart Apr 4, 2017
798ecd0
update command docs
jbardin Apr 4, 2017
412feff
Update CHANGELOG.md
jbardin Apr 4, 2017
a8d099a
initialize the s3 lock path in one place
jbardin Mar 30, 2017
45dfc63
set stateLock to true when building meta flagSet
jbardin Mar 30, 2017
d60c770
noop migrate copy, add -lock and -input
jbardin Mar 30, 2017
0d28afd
core: fix crash when computed nested map given in module block
apparentlymart Apr 4, 2017
383f924
core: basic test of EvalVariableBlock
apparentlymart Apr 4, 2017
f7eb208
Update CHANGELOG.md
apparentlymart Apr 4, 2017
9b7bb52
website: note that destroy provisioners can't run if resource removed
apparentlymart Apr 4, 2017
dbc2a2f
Update CHANGELOG.md
grubernaut Apr 4, 2017
50dee23
Specify that only elastic load balancers can be defined for `load_bal…
brandongalbraith Apr 4, 2017
7ae06b6
Do not error if compute volume attachment is missing (#13342)
dannytrigo Apr 5, 2017
2d44dd7
Update CHANGELOG.md
stack72 Apr 5, 2017
e53b78f
provider/aws: Migrate aws_dms_* resources away from AWS waiters (#13291)
stack72 Apr 5, 2017
a726f97
Update CHANGELOG.md
stack72 Apr 5, 2017
1f27996
provider/aws: Bump SDK version to 1.8.8 (#13354)
stack72 Apr 5, 2017
da89d45
Document the `environment` attribute. (#13360)
ringods Apr 5, 2017
87f3f7d
provider/aws: Fix wrong config in ES domain acceptance test (#13362)
radeksimko Apr 5, 2017
8881d9f
provider/aws: Increase subnet deletion timeout (#13356)
radeksimko Apr 5, 2017
f095952
Update CHANGELOG.md
radeksimko Apr 5, 2017
c609f81
provider/aws: Increase launch_configuration creation timeout (#13357)
radeksimko Apr 5, 2017
dbb2a49
Update CHANGELOG.md
radeksimko Apr 5, 2017
5bd4d03
provider/aws: Increase Beanstalk 'ready' timeout (#13359)
radeksimko Apr 5, 2017
d3a28a1
Update CHANGELOG.md
radeksimko Apr 5, 2017
a9fbb5b
provider/aws: Add support for treat_missing_data to cloudwatch_metric…
stack72 Apr 5, 2017
28a467e
Update CHANGELOG.md
stack72 Apr 5, 2017
cb02d09
add some nil checks for unexpected lock failures
jbardin Apr 5, 2017
acba13c
provider/cloudstack: do not force a new resource when updating load b…
serbaut Apr 5, 2017
3053bca
Update CHANGELOG.md
Apr 5, 2017
6593716
Fixed TestAccAWSEcsDataSource_ecsTaskDefinition
mbfrahry Apr 5, 2017
919096f
provider/aws: Add support for evaluate_low_sample_count_percentiles t…
stack72 Apr 5, 2017
67c0ee1
add AWSClient methods to get s3 and dyndb conns
jbardin Apr 5, 2017
0e9ba88
Update CHANGELOG.md
stack72 Apr 5, 2017
a39a3b0
website: clarify some aspects of the aws_lambda_function docs
apparentlymart Apr 4, 2017
889e1e8
use the aws provider client initialization
jbardin Apr 5, 2017
5747d86
provider/aws: Fix KMS Key reading with Exists method (#13348)
catsby Apr 5, 2017
b019cb4
Update CHANGELOG.md
catsby Apr 5, 2017
3da436a
provider/aws: Randomize ElastiCache param group name. Fixes TestAccAW…
catsby Apr 5, 2017
51d12a6
provider/aws: fix TestAccAWSCloudwatchLogSubscriptionFilter_basic by …
catsby Apr 5, 2017
c4a0869
Refactoring of bitbucket provider with betters.
cwood Apr 4, 2017
a53c1f6
provider/aws: Fix some Acc tests by skipping final snaphot in Redshift
catsby Apr 5, 2017
c05071f
Update CHANGELOG.md
catsby Apr 5, 2017
73308bb
TestAccAWSAutoScalingGroup_ALB_TargetGroups passes
mbfrahry Apr 5, 2017
f9c8cfb
fixes #13405: website (typo): "will automatic lock" ==> "will automat…
salewski Apr 5, 2017
0e415e9
Updated provider documentation to highlight limitations of interpolat…
nicholasjackson Apr 6, 2017
16ec755
Updating the changelog after #12455
tombuildsstuff Apr 6, 2017
ba02f49
Added chomp interpolation function.
yawn Apr 6, 2017
8f73ae1
Updated with bitbucket improvements information
cwood Apr 6, 2017
609401e
helper/schema: Clarify the expectations for DefaultFunc
apparentlymart Apr 6, 2017
942fcf7
Update CHANGELOG.md
apparentlymart Apr 6, 2017
146fb00
Update basic scaffolding
sethvargo Apr 5, 2017
bc313c4
Add HCL syntax highlighting for everything but providers
sethvargo Apr 5, 2017
0eb3a31
Update alicloud
sethvargo Apr 5, 2017
7b45ba8
Add favicons
sethvargo Apr 5, 2017
412c8ea
Add open graph images
sethvargo Apr 5, 2017
6c1afe9
Add press-kit
sethvargo Apr 6, 2017
0153e73
Redo home page
sethvargo Apr 6, 2017
cda7c05
Move image into docs
sethvargo Apr 6, 2017
5b3927d
Update intro section
sethvargo Apr 6, 2017
b13b899
Do not link h3 in sidebar
sethvargo Apr 6, 2017
b85bc28
Replace // with #
sethvargo Apr 6, 2017
560bca5
Remove fancy quotes
sethvargo Apr 6, 2017
5ebb94d
Update alicloud sidebar
sethvargo Apr 6, 2017
f17ce42
Update backend-types sidebar
sethvargo Apr 6, 2017
d0a5125
Update arukus
sethvargo Apr 6, 2017
2894366
Update atlas and archive
sethvargo Apr 6, 2017
ab5d039
cleanup consul lock entries
jbardin Apr 6, 2017
a6fb15f
Contain SVGs
sethvargo Apr 6, 2017
d70b0cf
Space feature boxes
sethvargo Apr 6, 2017
0f2744b
Detect and reject unknown attributes in "connection" blocks
apparentlymart Apr 5, 2017
0a74877
Update CHANGELOG.md
apparentlymart Apr 6, 2017
56a72d0
Add logo with text
sethvargo Apr 6, 2017
437d61f
Support for Windows newlines.
yawn Apr 7, 2017
3b3054b
Updated copy
nicholasjackson Apr 7, 2017
2e2ca19
DOCS: Updated list of triggers for codedeploy_deployment_group (#13396)
nwalke Apr 7, 2017
95bc0aa
Updated documentation with comments from @sethvargo and @radeksimko
nicholasjackson Apr 7, 2017
4cc1bdd
provider/aws: Raise timeout for deleting APIG REST API (#13414)
radeksimko Apr 7, 2017
ff0f3b5
Update CHANGELOG.md
radeksimko Apr 7, 2017
b86b5c0
provider/aws: Raise timeout for attaching/detaching VPN GW (#13457)
radeksimko Apr 7, 2017
d9d002d
Update CHANGELOG.md
radeksimko Apr 7, 2017
86b07bf
provider/openstack: Add SOFT_DELETED to delete status (#13444)
jtopjian Apr 7, 2017
51cc662
Update CHANGELOG.md
stack72 Apr 7, 2017
0873aa7
provider/openstack: Add support for 'value_specs' options to (#13380)
fatmcgav Apr 7, 2017
de8df99
Update CHANGELOG.md
stack72 Apr 7, 2017
a94d4aa
Bump Statuscake deps to support TriggerRate (#13387)
stack72 Apr 7, 2017
9a70d08
provider/aws: Remove deprecated endpoints from Provider introduction …
stack72 Apr 7, 2017
57fa17a
providers/aws: Update ElasticTranscoderPreset to have default for Max…
catsby Apr 7, 2017
e85a6bc
Update CHANGELOG.md
catsby Apr 7, 2017
b9d3649
provider/aws: Bump SDK to 1.8.10 (#13459)
stack72 Apr 7, 2017
8b6baea
Add `name_prefix` to `aws_alb_target_group` (#13442)
joshuaspence Apr 7, 2017
d5d14c3
Update CHANGELOG.md
stack72 Apr 7, 2017
801c743
provider/aws: Fix DynamoDB issues about GSIs indexes (#13256)
Ninir Apr 7, 2017
d871694
Update CHANGELOG.md
catsby Apr 7, 2017
edcc140
Move 2 AWS improvements to Fixes
catsby Apr 7, 2017
e9eb78a
docs: Update AWS Data Source docs to have HCL formatted examples (#13…
catsby Apr 7, 2017
c44db5b
Initial Enterprise Doc File Move
HoardingInfo Mar 16, 2017
b163896
Add "enterprise" to docs sidebar
HoardingInfo Mar 16, 2017
4c9b1b8
Converted features page to index page.
HoardingInfo Mar 16, 2017
3d64245
Converted ent index removed "Atlas"
HoardingInfo Mar 16, 2017
706419d
Converted ent index removed "Atlas"
HoardingInfo Mar 16, 2017
8245329
Fixed links on ent docs index
HoardingInfo Mar 16, 2017
e18cc40
Fixed links on ent docs index
HoardingInfo Mar 16, 2017
3fe7f7d
updated ent docs runs index page
HoardingInfo Mar 16, 2017
6791fc4
updated ent docs runs index page
HoardingInfo Mar 16, 2017
cf48e7a
Runs index - fixed link
HoardingInfo Mar 16, 2017
ed3cede
Runs index - fixed link
HoardingInfo Mar 16, 2017
89b0beb
Added runs layout
HoardingInfo Mar 17, 2017
46f3aef
Added runs layout
HoardingInfo Mar 17, 2017
ca3198a
Completed adding ent runs pages
HoardingInfo Mar 17, 2017
27229ee
Added all TFE state files
HoardingInfo Mar 17, 2017
ccbbec5
Added all TFE artifact files
HoardingInfo Mar 17, 2017
5a16f80
Added all TFE VCS files
HoardingInfo Mar 17, 2017
71593c8
TFE Docs text/spelling changes
HoardingInfo Mar 20, 2017
c213b7f
added TFE faq, billing, api, organizations
HoardingInfo Mar 21, 2017
e8fae36
Added API docs to FTE
HoardingInfo Mar 21, 2017
7a950ee
Added API docs to FTE
HoardingInfo Mar 21, 2017
f2d98ff
Added Packer docs to TFE
HoardingInfo Mar 22, 2017
32e3dc2
TFE Docs text edits, added support, docs css for tables
HoardingInfo Mar 22, 2017
0c70d9d
Fixed typos and broken links in TFE docs
HoardingInfo Mar 23, 2017
2a3f247
removed Atlas from TF OSS Docs
HoardingInfo Mar 23, 2017
dcf0b6f
Removed FTE "billing" doc and added FTE level of hierarchy
HoardingInfo Mar 27, 2017
f0e5c76
Expanded all sub-menus in "FTE"
HoardingInfo Apr 3, 2017
78e274f
Cleanup layouts
sethvargo Apr 7, 2017
59c98b3
Update API docs
sethvargo Apr 7, 2017
6bef044
Update artifact docs
sethvargo Apr 7, 2017
a453450
Update FAQ and Glossary
sethvargo Apr 7, 2017
4c4dd76
Update organizations
sethvargo Apr 7, 2017
2b37507
Update packer sections
sethvargo Apr 7, 2017
d49ac68
Update runs
sethvargo Apr 7, 2017
bd7c543
Update state
sethvargo Apr 7, 2017
193f599
Update accounts
sethvargo Apr 7, 2017
8ea2b40
Update VCS
sethvargo Apr 7, 2017
d23c395
Update support
sethvargo Apr 7, 2017
36dbd1a
Update home
sethvargo Apr 7, 2017
fd2da29
Fix terminal size
sethvargo Apr 7, 2017
7bea33d
Remove unused pages
sethvargo Apr 7, 2017
270289b
Fix broken links
sethvargo Apr 7, 2017
7a2d380
Typo
sethvargo Apr 7, 2017
d137bc6
Remove unused layout
sethvargo Apr 7, 2017
b6ba9b2
Remove atlas reference
sethvargo Apr 7, 2017
d6a3198
Remove more references to Atlas
sethvargo Apr 7, 2017
6ca2e1f
Fix bug during build
sethvargo Apr 7, 2017
f3182ec
Update CHANGELOG.md
apparentlymart Apr 7, 2017
a007606
remove some manual names to allow the automatic random names, avoid s…
catsby Apr 7, 2017
2fc157d
provider/aws: Fix DB Option group test by skipping backup
catsby Apr 7, 2017
ce48997
AWS IAM OpenID Connect provider
ryansroberts Apr 7, 2016
8c91f56
provider/aws: Add diff suppression & validation for OpenID URL
radeksimko Apr 6, 2017
fce4c81
provider/aws: Align field names with conventions (lowercase+underscore)
radeksimko Apr 6, 2017
8c70296
aws: Fix OID connect provider updates + simplify + add tests
radeksimko Apr 6, 2017
5608860
aws: Allow import of OID connect provider + allow disappearance
radeksimko Apr 6, 2017
8000 2922cb0
website: Activate HCL syntax highlighting for Vault provider docs
apparentlymart Apr 7, 2017
f6cca9f
website: Activate HCL syntax highlighting for Rundeck provider docs
apparentlymart Apr 7, 2017
0410077
website: Activate HCL syntax highlighting for Template provider docs
apparentlymart Apr 7, 2017
6aaf7ec
website: Activate HCL syntax highlighting for Random provider docs
apparentlymart Apr 7, 2017
40eba33
website: syntax highlighting and hclfmt layout for TLS provider
apparentlymart Apr 7, 2017
162e8ad
website: syntax highlighting for "external" provider docs
apparentlymart Apr 7, 2017
0137a99
website: additional syntax highlighting for "terraform" provider docs
apparentlymart Apr 7, 2017
1ed70c5
website: Syntax highlighting for "mysql" provider docs
apparentlymart Apr 7, 2017
dc61ff8
provider/dns: update hard-coded DNS result in acctests
apparentlymart Apr 8, 2017
47c95d1
Upgrade mapstructure vendoring to latest version
apparentlymart Apr 7, 2017
cdf856a
core: EvalVariableBlock to decode maps and slices more carefully
apparentlymart Apr 7, 2017
9816347
Update CHANGELOG.md
radeksimko Apr 8, 2017
ce33485
provider/ns1: No splitting answer on spf records. (#13260)
pashap Apr 8, 2017
e71f52b
Update CHANGELOG.md
radeksimko Apr 8, 2017
c079191
provider/aws: Fix aws_ami_launch_permission refresh when AMI disappea…
phinze Apr 8, 2017
bca6952
Update CHANGELOG.md
stack72 Apr 8, 2017
bd197e7
Add a link to "Multiple Provider Instances"
tpoindessous Apr 10, 2017
f900f46
Add support for Sumologic logging to Fastly provider (#12541)
msuterski Apr 10, 2017
e943f0b
Update CHANGELOG.md
stack72 Apr 10, 2017
4ccd084
provider/aws Add support for updating SSM documents (#13491)
PeteGoo Apr 10, 2017
b4ca518
Update CHANGELOG.md
stack72 Apr 10, 2017
14668d1
Elasticsearch provider
Mar 31, 2017
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
  •  
  •  
  •  
66 changes: 64 additions & 2 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,9 +1,23 @@
## 0.9.3 (unreleased)

FEATURES:

* **New Resource:** `aws_iam_openid_connect_provider` [GH-13456]
* **New Resource:** `aws_lightsail_static_ip` [GH-13175]
* **New Resource:** `aws_lightsail_static_ip_attachment` [GH-13207]
* **New Resource:** `aws_ses_domain_identity` [GH-13098]
* **New Resource**: `azurerm_managed_disk` [GH-12455]
* **New Resource:** `kubernetes_secret` [GH-12960]
* **New Data Source:** `aws_iam_role` [GH-13213]

IMPROVEMENTS:

* core: add `-lock-timeout` option, which will block and retry locks for the given duration [GH-13262]
* core: new `chomp` interpolation function which returns the given string with any trailing newline characters removed [GH-13419]
* backend/remote-state: Add support for assume role extensions to s3 backend [GH-13236]
* config: New interpolation functions `basename` and `dirname`, for file path manipulation [GH-13080]
* helper/resource: Allow unknown "pending" states [GH-13099]
* command/hook_ui: Increase max length of state IDs from 20 to 80 [GH-13317]
* provider/aws: Add support to set iam_role_arn on cloudformation Stack [GH-12547]
* provider/aws: Support priority and listener_arn update of alb_listener_rule [GH-13125]
* provider/aws: Deprecate roles in favour of role in iam_instance_profile [GH-13130]
Expand All @@ -13,17 +27,65 @@ IMPROVEMENTS:
* provider/aws: `aws_kinesis_firehose_delivery_stream` `password` field marked as sensitive [GH-13147]
* provider/aws: `aws_opsworks_application` `app_source.0.password` & `ssl_configuration.0.private_key` fields marked as sensitive [GH-13147]
* provider/aws: `aws_opsworks_stack` `custom_cookbooks_source.0.password` field marked as sensitive [GH-13147]
* provider/aws: Support the ability to enable / disable ipv6 support in VPC [GH-12527]
* provider/aws: Added API Gateway integration update [GH-13249]
* provider/aws: Add `identifier` | `name_prefix` to RDS resources [GH-13232]
* provider/aws: Validate `aws_ecs_task_definition.container_definitions` [GH-12161]
* provider/aws: Update caller_identity data source [GH-13092]
* provider/aws: `aws_subnet_ids` data source for getting a list of subnet ids matching certain criteria [GH-13188]
* provider/aws: Support ip_address_type for aws_alb [GH-13227]
* provider/aws: Migrate `aws_dms_*` resources away from AWS waiters [GH-13291]
* provider/aws: Add support for treat_missing_data to cloudwatch_metric_alarm [GH-13358]
* provider/aws: Add support for evaluate_low_sample_count_percentiles to cloudwatch_metric_alarm [GH-13371]
* provider/aws: Add `name_prefix` to `aws_alb_target_group` [GH-13442]
* provider/bitbucket: Improved error handling [GH-13390]
* provider/cloudstack: Do not force a new resource when updating `cloudstack_loadbalancer_rule` members [GH-11786]
* provider/fastly: Add support for Sumologic logging [GH-12541]
* provider/github: Handle the case when issue labels already exist [GH-13182]
* provider/google: Mark `google_container_cluster`'s `client_key` & `password` inside `master_auth` as sensitive [GH-13148]

* provider/openstack: Add support for 'value_specs' options to `openstack_compute_servergroup_v2` [GH-13380]
* provider/triton: Move to joyent/triton-go [GH-13225]

BUG FIXES:

* core: Escaped interpolation-like sequences (like `$${foo}`) now permitted in variable defaults [GH-13137]
* core: Escaped interpolation-like sequences (like `$${foo}`) now permitted in variable defaults [GH-13137]
* core: Fix strange issues with computed values in provider configuration that were worked around with `-input=false` [GH-11264], [GH-13264]
* core: Fix crash when providing nested maps as variable values in a `module` block [GH-13343]
* core: `connection` block attributes are now subject to basic validation of attribute names during validate walk [GH-13400]
* provider/aws: Add Support for maintenance_window and back_window to rds_cluster_instance [GH-13134]
* provider/aws: Increase timeout for AMI registration [GH-13159]
* provider/aws: Increase timeouts for ELB [GH-13161]
* provider/aws: `volume_type` of `aws_elasticsearch_domain.0.ebs_options` marked as `Computed` which prevents spurious diffs [GH-13160]
* provider/aws: Don't set DBName on `aws_db_instance` from snapshot [GH-13140]
* provider/aws: Add DiffSuppression to aws_ecs_service placement_strategies [GH-13220]
* provider/aws: Refresh aws_alb_target_group stickiness on manual updates [GH-13199]
* provider/aws: Preserve default retain_on_delete in cloudfront import [GH-13209]
* provider/aws: Refresh aws_alb_target_group tags [GH-13200]
* provider/aws: Set aws_vpn_connection to recreate when in deleted state [GH-13204]
* provider/aws: Wait for aws_opsworks_instance to be running when it's specified [GH-13218]
* provider/aws: Handle `aws_lambda_function` missing s3 key error [GH-10960]
* provider/aws: Set stickiness to computed in alb_target_group [GH-13278]
* provider/aws: Increase timeout for deploying `cloudfront_distribution` from 40 to 70 mins [GH-13319]
* provider/aws: Increase AMI retry timeouts [GH-13324]
* provider/aws: Increase subnet deletion timeout [GH-13356]
* provider/aws: Increase launch_configuration creation timeout [GH-13357]
* provider/aws: Increase Beanstalk env 'ready' timeout [GH-13359]
* provider/aws: Raise timeout for deleting APIG REST API [GH-13414]
* provider/aws: Raise timeout for attaching/detaching VPN Gateway [GH-13457]
* provider/aws: Recreate opsworks_stack on change of service_role_arn [GH-13325]
* provider/aws: Fix KMS Key reading with Exists method [GH-13348]
* provider/aws: Fix DynamoDB issues about GSIs indexes [GH-13256]
* provider/aws: Fix `aws_s3_bucket` drift detection of logging options [GH-13281]
* provider/aws: Update ElasticTranscoderPreset to have default for MaxFrameRate [GH-13422]
* provider/aws: Fix aws_ami_launch_permission refresh when AMI disappears [GH-13469]
* provider/aws: Add support for updating SSM documents [GH-13491]
* provider/azurerm: Network Security Group - ignoring protocol casing at Import time [GH-13153]
* provider/azurerm: Fix crash when importing Local Network Gateways [GH-13261]
* provider/bitbucket: Fixed issue where provider would fail with an "EOF" error on some operations [GH-13390]
* provider/ns1: No splitting answer on SPF records. [GH-13260]
* provider/openstack: Refresh volume_attachment from state if NotFound [GH-13342]
* provider/openstack: Add SOFT_DELETED to delete status [GH-13444]
* provider/profitbricks: Changed output type of ips variable of ip_block ProfitBricks resource [GH-13290]

## 0.9.2 (March 28, 2017)

Expand Down
4 changes: 4 additions & 0 deletions backend/backend.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ package backend
import (
"context"
"errors"
"time"

"github.com/hashicorp/terraform/config/module"
"github.com/hashicorp/terraform/state"
Expand Down Expand Up @@ -132,6 +133,9 @@ type Operation struct {
// state.Lockers for its duration, and Unlock when complete.
LockState bool

// The duration to retry obtaining a State lock.
StateLockTimeout time.Duration

// Environment is the named state that should be loaded from the Backend.
Environment string
}
Expand Down
7 changes: 5 additions & 2 deletions backend/local/backend_apply.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import (
"github.com/hashicorp/errwrap"
"github.com/hashicorp/go-multierror"
"github.com/hashicorp/terraform/backend"
clistate "github.com/hashicorp/terraform/command/state"
"github.com/hashicorp/terraform/command/clistate"
"github.com/hashicorp/terraform/config/module"
"github.com/hashicorp/terraform/state"
"github.com/hashicorp/terraform/terraform"
Expand Down Expand Up @@ -52,9 +52,12 @@ func (b *Local) opApply(
}

if op.LockState {
lockCtx, cancel := context.WithTimeout(ctx, op.StateLockTimeout)
defer cancel()

lockInfo := state.NewLockInfo()
lockInfo.Operation = op.Type.String()
lockID, err := clistate.Lock(opState, lockInfo, b.CLI, b.Colorize())
lockID, err := clistate.Lock(lockCtx, opState, lockInfo, b.CLI, b.Colorize())
if err != nil {
runningOp.Err = errwrap.Wrapf("Error locking state: {{err}}", err)
return
Expand Down
7 changes: 5 additions & 2 deletions backend/local/backend_plan.go
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,8 @@ import (
8000 "github.com/hashicorp/errwrap"
"github.com/hashicorp/go-multierror"
"github.com/hashicorp/terraform/backend"
"github.com/hashicorp/terraform/command/clistate"
"github.com/hashicorp/terraform/command/format"
clistate "github.com/hashicorp/terraform/command/state"
"github.com/hashicorp/terraform/config/module"
"github.com/hashicorp/terraform/state"
"github.com/hashicorp/terraform/terraform"
Expand Down Expand Up @@ -61,9 +61,12 @@ func (b *Local) opPlan(
}

if op.LockState {
lockCtx, cancel := context.WithTimeout(ctx, op.StateLockTimeout)
defer cancel()

lockInfo := state.NewLockInfo()
lockInfo.Operation = op.Type.String()
lockID, err := clistate.Lock(opState, lockInfo, b.CLI, b.Colorize())
lockID, err := clistate.Lock(lockCtx, opState, lockInfo, b.CLI, b.Colorize())
if err != nil {
runningOp.Err = errwrap.Wrapf("Error locking state: {{err}}", err)
return
Expand Down
7 changes: 5 additions & 2 deletions backend/local/backend_refresh.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import (
"github.com/hashicorp/errwrap"
"github.com/hashicorp/go-multierror"
"github.com/hashicorp/terraform/backend"
clistate "github.com/hashicorp/terraform/command/state"
"github.com/hashicorp/terraform/command/clistate"
"github.com/hashicorp/terraform/config/module"
"github.com/hashicorp/terraform/state"
)
Expand Down Expand Up @@ -51,9 +51,12 @@ func (b *Local) opRefresh(
}

if op.LockState {
lockCtx, cancel := context.WithTimeout(ctx, op.StateLockTimeout)
defer cancel()

lockInfo := state.NewLockInfo()
lockInfo.Operation = op.Type.String()
lockID, err := clistate.Lock(opState, lockInfo, b.CLI, b.Colorize())
lockID, err := clistate.Lock(lockCtx, opState, lockInfo, b.CLI, b.Colorize())
if err != nil {
runningOp.Err = errwrap.Wrapf("Error locking state: {{err}}", err)
return
Expand Down
7 changes: 2 additions & 5 deletions backend/remote-state/consul/backend_state.go
Original file line number Diff line number Diff line change
Expand Up @@ -102,22 +102,19 @@ func (b *Backend) State(name string) (state.State, error) {
stateMgr = &state.LockDisabled{Inner: stateMgr}
}

// Get the locker, which we know always exists
stateMgrLocker := stateMgr.(state.Locker)

// Grab a lock, we use this to write an empty state if one doesn't
// exist already. We have to write an empty state as a sentinel value
// so States() knows it exists.
lockInfo := state.NewLockInfo()
lockInfo.Operation = "init"
lockId, err := stateMgrLocker.Lock(lockInfo)
lockId, err := stateMgr.Lock(lockInfo)
if err != nil {
return nil, fmt.Errorf("failed to lock state in Consul: %s", err)
}

// Local helper function so we can call it multiple places
lockUnlock := func(parent error) error {
if err := stateMgrLocker.Unlock(lockId); err != nil {
if err := stateMgr.Unlock(lockId); err != nil {
return fmt.Errorf(strings.TrimSpace(errStateUnlock), lockId, err)
}

Expand Down
11 changes: 7 additions & 4 deletions backend/remote-state/consul/client.go
Original file line number Diff line number Diff line change
Expand Up @@ -121,16 +121,15 @@ func (c *RemoteClient) Lock(info *state.LockInfo) (string, error) {
default:
if c.lockCh != nil {
// we have an active lock already
return "", nil
return "", fmt.Errorf("state %q already locked", c.Path)
}
}

if c.consulLock == nil {
opts := &consulapi.LockOptions{
Key: c.Path + lockSuffix,
// We currently don't procide any options to block terraform and
// retry lock acquisition, but we can wait briefly in case the
// lock is about to be freed.
// only wait briefly, so terraform has the choice to fail fast or
// retry as needed.
LockWaitTime: time.Second,
LockTryOnce: true,
}
Expand Down Expand Up @@ -191,6 +190,10 @@ func (c *RemoteClient) Unlock(id string) error {
err := c.consulLock.Unlock()
c.lockCh = nil

// This is only cleanup, and will fail if the lock was immediately taken by
// another client, so we don't report an error to the user here.
c.consulLock.Destroy()

kv := c.Client.KV()
_, delErr := kv.Delete(c.Path+lockInfoSuffix, nil)
if delErr != nil {
Expand Down
41 changes: 41 additions & 0 deletions backend/remote-state/consul/client_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ import (
"time"

"github.com/hashicorp/terraform/backend"
"github.com/hashicorp/terraform/state"
"github.com/hashicorp/terraform/state/remote"
)

Expand Down Expand Up @@ -98,3 +99,43 @@ func TestConsul_stateLock(t *testing.T) {

remote.TestRemoteLocks(t, sA.(*remote.State).Client, sB.(*remote.State).Client)
}

func TestConsul_destroyLock(t *testing.T) {
srv := newConsulTestServer(t)
defer srv.Stop()

// Get the backend
b := backend.TestBackendConfig(t, New(), map[string]interface{}{
"address": srv.HTTPAddr,
"path": fmt.Sprintf("tf-unit/%s", time.Now().String()),
})

// Grab the client
s, err := b.State(backend.DefaultStateName)
if err != nil {
t.Fatalf("err: %s", err)
}

c := s.(*remote.State).Client.(*RemoteClient)

info := state.NewLockInfo()
id, err := c.Lock(info)
if err != nil {
t.Fatal(err)
}

lockPath := c.Path + lockSuffix

if err := c.Unlock(id); err != nil {
t.Fatal(err)
}

// get the lock val
pair, _, err := c.Client.KV().Get(lockPath, nil)
if err != nil {
t.Fatal(err)
}
if pair != nil {
t.Fatalf("lock key not cleaned up at: %s", pair.Key)
}
}
Loading
0