Commit Graph

19126 Commits

Author SHA1 Message Date
James Bardin
0022d224e8 store and verify s3 remote state checksum
Updates to objects in S3 are only eventually consistent. If the
RemoteClient has a DynamoDB table available, use that to store a
checksum of the last written state, so the object can be verified by the
next client to call Get.

Terraform currently doesn't have any sort of user feedback around
RefreshState/Get, so we poll only for a short time before returning an
error.
2017-05-24 13:39:30 -04:00
Ryon
adfa7aedfb Update news section with YAML data file (#14612)
* Update news section with April 4 webinar video

* Use YAML data file for news; add webinar registration CTA
2017-05-18 18:49:52 +03:00
Radek Simko
cc505b2d61 Update CHANGELOG.md 2017-05-18 17:41:28 +02:00
Radek Simko
740c92fc67 provider/aws: Support filtering in ASG data source (#14501) 2017-05-18 17:40:49 +02:00
Jake Champlin
04c62ae406 Merge pull request #14628 from jasonmcintosh/patch-1
Fixed export to be master_username from username
2017-05-18 11:36:04 -04:00
Jason
eac7ade310 Fixed export to be master_username from username
rds cluster exports the variable for "username" as master_username, not username.
2017-05-18 10:17:48 -05:00
Jake Champlin
0b2d02fc41 Update CHANGELOG.md 2017-05-18 11:13:22 -04:00
Jake Champlin
5e7035bf89 Merge pull request #14598 from pradeepbhadani/pow
Add power function
2017-05-18 11:12:33 -04:00
Pradeep Bhadani
2c39887706 Add fail test - one parameter, non-numeric parameter 2017-05-18 14:30:10 +00:00
Paul Stack
56fa4c7e0d Update CHANGELOG.md 2017-05-18 17:29:42 +03:00
Paul Stack
62347ea833 provider/aws: Fall back to old tagging mechanism for AWS gov and aws China (#14627)
Fixes: #14535

When in a `restricted` cloud, we should fall back to the old method of
tagging. Before this change we saw the following:

```
% terraform apply                                                                                                                                                                                         ✭
aws_instance.foo: Creating...
  ami:                          "" => "ami-0fa3c42c"
  associate_public_ip_address:  "" => "<computed>"
  availability_zone:            "" => "<computed>"
  ebs_block_device.#:           "" => "<computed>"
  ephemeral_block_device.#:     "" => "<computed>"
  instance_state:               "" => "<computed>"
  instance_type:                "" => "m1.small"
  ipv6_address_count:           "" => "<computed>"
  ipv6_addresses.#:             "" => "<computed>"
  key_name:                     "" => "<computed>"
  network_interface.#:          "" => "<computed>"
  network_interface_id:         "" => "<computed>"
  placement_group:              "" => "<computed>"
  primary_network_interface_id: "" => "<computed>"
  private_dns:                  "" => "<computed>"
  private_ip:                   "" => "<computed>"
  public_dns:                   "" => "<computed>"
  public_ip:                    "" => "<computed>"
  root_block_device.#:          "" => "<computed>"
  security_groups.#:            "" => "<computed>"
  source_dest_check:            "" => "true"
  subnet_id:                    "" => "<computed>"
  tags.%:                       "" => "1"
  tags.foo:                     "" => "bar"
  tenancy:                      "" => "<computed>"
  volume_tags.%:                "" => "<computed>"
  vpc_security_group_ids.#:     "" => "<computed>"
aws_instance.foo: Creation complete (ID: i-0009f227ae24791b9)

Apply complete! Resources: 1 added, 0 changed, 0 destroyed.

% terraform plan                                                                                                                                                                                          ✭
Refreshing Terraform state in-memory prior to plan...
The refreshed state will be used to calculate this plan, but will not be
persisted to local or remote state storage.

aws_instance.foo: Refreshing state... (ID: i-0009f227ae24791b9)
The Terraform execution plan has been generated and is shown below.
Resources are shown in alphabetical order for quick scanning. Green resources
will be created (or destroyed and then created if an existing resource
exists), yellow resources are being changed in-place, and red resources
will be destroyed. Cyan entries are data sources to be read.

Note: You didn't specify an "-out" parameter to save this plan, so when
"apply" is called, Terraform can't guarantee this is what will execute.

~ aws_instance.foo
    tags.%:   "0" => "1"
    tags.foo: "" => "bar"

Plan: 0 to add, 1 to change, 0 to destroy.
```

After this patch, we see the following:

```
% terraform apply                                                                                                                                                                                       ✹ ✭
[WARN] /Users/stacko/Code/go/bin/terraform-provider-aws overrides an internal plugin for aws-provider.
  If you did not expect to see this message you will need to remove the old plugin.
  See https://www.terraform.io/docs/internals/internal-plugins.html
aws_instance.foo: Creating...
  ami:                          "" => "ami-0fa3c42c"
  associate_public_ip_address:  "" => "<computed>"
  availability_zone:            "" => "<computed>"
  ebs_block_device.#:           "" => "<computed>"
  ephemeral_block_device.#:     "" => "<computed>"
  instance_state:               "" => "<computed>"
  instance_type:                "" => "m1.small"
  ipv6_address_count:           "" => "<computed>"
  ipv6_addresses.#:             "" => "<computed>"
  key_name:                     "" => "<computed>"
  network_interface.#:          "" => "<computed>"
  network_interface_id:         "" => "<computed>"
  placement_group:              "" => "<computed>"
  primary_network_interface_id: "" => "<computed>"
  private_dns:                  "" => "<computed>"
  private_ip:                   "" => "<computed>"
  public_dns:                   "" => "<computed>"
  public_ip:                    "" => "<computed>"
  root_block_device.#:          "" => "<computed>"
  security_groups.#:            "" => "<computed>"
  source_dest_check:            "" => "true"
  subnet_id:                    "" => "<computed>"
  tags.%:                       "" => "1"
  tags.foo:                     "" => "bar"
  tenancy:                      "" => "<computed>"
  volume_tags.%:                "" => "<computed>"
  vpc_security_group_ids.#:     "" => "<computed>"
aws_instance.foo: Creation complete (ID: i-04cd122e28f167a14)

Apply complete! Resources: 1 added, 0 changed, 0 destroyed.

% terraform plan                                                                                                                                                                                        ✹ ✭
[WARN] /Users/stacko/Code/go/bin/terraform-provider-aws overrides an internal plugin for aws-provider.
  If you did not expect to see this message you will need to remove the old plugin.
  See https://www.terraform.io/docs/internals/internal-plugins.html
Refreshing Terraform state in-memory prior to plan...
The refreshed state will be used to calculate this plan, but will not be
persisted to local or remote state storage.

aws_instance.foo: Refreshing state... (ID: i-04cd122e28f167a14)
No changes. Infrastructure is up-to-date.

This means that Terraform did not detect any differences between your
configuration and real physical resources that exist. As a result, Terraform
doesn't need to do anything.
```
2017-05-18 17:28:37 +03:00
Jake Champlin
66b7a24b4f Update CHANGELOG.md 2017-05-18 09:55:41 -04:00
Jake Champlin
3f10116c6b Merge pull request #14563 from raphink/rancher_member
rancher_environment: add member support
2017-05-18 09:54:40 -04:00
Paul Stack
0c209e2b75 Update CHANGELOG.md 2017-05-18 16:45:30 +03:00
Vladislav Rassokhin
5e8306d02a Ensure schemas of default_cache_behavior and cache_behavior are same except path_pattern (#12628) 2017-05-18 16:42:04 +03:00
Radek Simko
cf67a689db provider/aws: Randomize CloudFormation acceptance tests (#14623) 2017-05-18 15:39:51 +02:00
Raphaël Pinson
d0e5ee0a27
rancher_environment: member documentation details 2017-05-18 15:22:48 +02:00
Raphaël Pinson
87b502d5cf
rancher_environment: fix typo 2017-05-18 15:20:42 +02:00
Paul Stack
4bb16ad7f8 provider/aws: Fix the aws_codebuild_project acceptance tests (#14626) 2017-05-18 16:19:56 +03:00
Radek Simko
506eaaa247 provider/aws: Raise timeout for attaching/detaching VPN GW (#14624) 2017-05-18 15:02:34 +02:00
Jake Champlin
9e4b62556a Merge pull request #14571 from hashicorp/b-handle-limit-exceeded
provider/aws: Handle LimitExceededException for subscriber limits
2017-05-18 08:34:30 -04:00
Jake Champlin
baa6859bfe
provider/aws: bump sdk version 2017-05-18 08:25:22 -04:00
Radek Simko
02cacceee4 provider/aws: Fix RDS DB snapshot data source acc test (#14610) 2017-05-18 13:52:33 +02:00
Paul Stack
57489bb17f Update CHANGELOG.md 2017-05-18 14:31:39 +03:00
Eugene Chuvyrov
5884d518e7 [MS] Adding support for VMSS Data Disks using Managed Disk feature (#14608)
* Added support for data disks with managed disks feature

* Updated docs with VMSS Data Disks changes
2017-05-18 14:30:19 +03:00
Paul Stack
399af7710d Update CHANGELOG.md 2017-05-18 14:26:53 +03:00
Techbrunch
71e5602d79 Fixes #14620 Handle migration of data when restoring db cluster from snapshot (#14622)
Add `preparing-data-migration` to the list of pending statuses when creating a cluster from a snapshot using a different engine.
2017-05-18 14:23:55 +03:00
Yorgos Saslis
5efe3ad6b3 Update supported AWS regions (#14621)
According to an AWS announcement from yesterday: 
https://aws.amazon.com/about-aws/whats-new/2017/05/amazon-lightsail-now-available-in-5-additional-europe-us-aws-regions/
2017-05-18 14:10:37 +03:00
Dominik Schuster
622bc1aec2 Bumped github.com/ukcloud/govcloudair vendor version (#14616) 2017-05-18 13:04:02 +03:00
mosuke5
19d3355ca6 Update Example Usage (#14606)
Delete an unnecessary option `commodity_code `.
2017-05-18 13:00:15 +03:00
Radek Simko
f77ccc0520 provider/aws: Randomize SNS topic names in acceptance tests (#14618) 2017-05-18 11:45:19 +02:00
Radek Simko
53c08092f6 Update CHANGELOG.md 2017-05-18 11:44:48 +02:00
Radek Simko
1b532b519f provider/aws: Increase timeout for retrying creation of IAM server cert (#14609) 2017-05-18 11:43:50 +02:00
Raphaël Pinson
1392670a69
rancher_environment: initialize envClient only when members are set 2017-05-18 09:35:13 +02:00
Raphaël Pinson
4f521c74b0
rancher_environment: do not use a custom set function for members 2017-05-18 09:21:27 +02:00
Pradeep Bhadani
47b1aaea3a Add pow function 2017-05-17 21:46:33 +00:00
Clint
2a36e75b9e provider/aws: Tag VPCs created in our tests to help track down leaks (#14596) 2017-05-17 16:26:40 -05:00
James Bardin
25a71d9a56 Merge pull request #14593 from hashicorp/jbardin/dns-acc-tests
convert dns tests back to acceptance tests
2017-05-17 15:57:09 -04:00
James Bardin
6254bb6387 don't rename imports except to avoid collisions 2017-05-17 15:35:04 -04:00
James Bardin
490ee8c17d convert dns tests with external deps tyo ACC tests
External network calls can fail, and shouldn't stop unit tests from
running.
2017-05-17 15:33:30 -04:00
Jake Champlin
8df29ccde6 Merge pull request #14580 from pradeepbhadani/master
Mention timezone in preferred_backup_window description and Update rds_cluster_instance supported list
2017-05-17 14:47:07 -04:00
Dana Hoffman
c5b1eed7e5 Add mechanism for listing services in project_services docs (#14557) 2017-05-17 20:41:45 +03:00
Jeremy Voorhis
b0ad1b9669 Archive provider docs (#14584)
* Document source block for archive_file data source.

* Add example for archive_file source block.

* Capitalize Optional/Required for consistency with majority of provider docs.
2017-05-17 20:41:25 +03:00
Raphaël Pinson
b6c9b2dc7a
Test members 2017-05-17 18:20:47 +02:00
pradeepbhadani
2cc7431983 Update supported instance list
db.t2.small is in list of AWS documentation https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/Aurora.Managing.html
2017-05-17 17:20:44 +01:00
Raphaël Pinson
d75ff93165
rancher_environment: do not crash on empty members 2017-05-17 18:20:33 +02:00
pradeepbhadani
8f5e5c47b9 Update preferred_backup_window description
mention time in UTC
2017-05-17 17:15:00 +01:00
pradeepbhadani
8aac6c29ae Merge pull request #2 from hashicorp/master
Bringing back from Original Fork
2017-05-17 17:11:43 +01:00
Jake Champlin
f563515655 Update CHANGELOG.md 2017-05-17 11:34:41 -04:00
Jake Champlin
c56cccab48 Merge pull request #14570 from raphink/github_user
GitHub user
2017-05-17 11:33:48 -04:00