clint shryock
7e9bfda31a
provider/aws: Fix issue with ECS Placement Strat. and type casing
...
The API asks you to send lower case values, but returns uppercase ones.
Here we lowercase the returned API values.
There is no migration here because the field in question is nested in a
set, so the hash will change regardless. Anyone using this feature now
has it broken anyway.
2017-01-31 11:33:16 -06:00
Jake Champlin
96f6044908
provider/aws: ECS Placement constraints fix ( #11475 )
...
* fixing AWS ECS placement constraints
* correcting AWS ECS task definition doc
* reverting unnecessary change to resource_aws_ecs_task_definition
* provider/aws: ECS Placement constraints fix
Expands upon #11446 from @bgetsug
Adds:
- Acceptance Test
- Improves `nil` check on constraint expression
Fixes : #10968
2017-01-29 16:42:50 +00:00
Jake Champlin
763cfcdb1f
Use strings.HasPrefix instead of regexp for ecs_service
2017-01-23 12:02:53 -05:00
Jake Champlin
8159731c91
provider/aws: Allow ARN identifier to be set
...
Allows users from govcloud and other regions (aws-cn) to now use the following resources correctly:
```
- data "aws_billing_service_account"
- data "aws_elb_service_account"
- resource "aws_cloudfront_origin_access_identity"
- resource "aws_ecs_service"
- resource "aws_iam_saml_provider"
- resource "aws_lambda_permission"
- resource "aws_sns_topic_policy"
```
2017-01-23 11:30:28 -05:00
Jake Champlin
5276496e6d
provider/aws: Update ECS task_definition and service
...
Updates ECS task_definition documentation, and schema validation functions to match the AWS API documentation.
Updates ECS service documentation, and schema validation functions match the AWS API documentation.
2017-01-19 17:54:52 -05:00
Paul Stack
36b6384956
provider/aws: Add support for placement_constraint to aws_ecs_service ( #11242 )
...
```
% make testacc TEST=./builtin/providers/aws TESTARGS='-run=TestAccAWSEcsServiceWithPlacementConstraints'
==> Checking that code complies with gofmt requirements...
go generate $(go list ./... | grep -v /terraform/vendor/)
2017/01/17 18:25:27 Generated command/internal_plugin_list.go
TF_ACC=1 go test ./builtin/providers/aws -v -run=TestAccAWSEcsServiceWithPlacementConstraints -timeout 120m
=== RUN TestAccAWSEcsServiceWithPlacementConstraints
--- PASS: TestAccAWSEcsServiceWithPlacementConstraints (113.18s)
PASS
ok github.com/hashicorp/terraform/builtin/providers/aws 113.208s
```
//cc @catsby
2017-01-17 18:43:34 +00:00
Greg Thole
e06f32ffe9
Provider AWS: Add Placement Strategy to aws_ecs_service resource ( #11201 )
...
* Add aws_ecs_service placement_strategy param
* Update docs
2017-01-17 18:10:44 +00:00
Radek Simko
eda1298e21
provider/aws: Increase ECS service drain timeout ( #9521 )
2016-10-22 14:16:59 +01:00
Radek Simko
2223964ff1
provider/aws: Remove unsafe ptr dereferencing from ECS/ECR ( #8514 )
2016-08-28 17:15:45 +01:00
Radek Simko
070942df0f
provider/aws: Add support for ECS svc - LB target group ( #8190 )
2016-08-23 11:19:43 -05:00
Raphael Randschau
fc0c2c0ea7
Validate number of load_balancers
...
see #5336
2016-03-13 12:51:51 +01:00
Paul Hinze
108ccf0007
builtin: Refactor resource.Retry to clarify return
...
Change the `RetryFunc` from a plain `error` return type to a
specialized `RetryError` which must decide whether it is
retryable or not.
Add `RetryableError` / `NonRetryableError` factory functions that
callers are meant to use to build up these errors.
This makes it eminently clear whether or not a given error is
retryable from inside the client code.
Goal here is to _not_ change any behavior, simply reflect the
existing behavior with the new, clearer, API.
2016-03-09 17:37:56 -06:00
Paul Hinze
de656942ae
provider/aws: Fix all pointer RetryError returns
...
All of these RetryErrors were meant to fail right away, but instead
caused retry looping because the typecheck in the implementation of
`resource.Retry()` only catches the value type, and not the pointer
type.
Refs #5537
2016-03-09 14:59:55 -06:00
Joshua Garnett
12958fb5e7
Added support for the deployment configuration settings to the ecs service resource.
2016-02-19 15:32:39 -05:00
Ian Duffy
47ac10d66b
Change resource.StateChangeConf to use an array for target states
...
Signed-off-by: Ian Duffy <ian@ianduffy.ie>
2016-01-21 01:20:41 +00:00
clint shryock
317ab83743
Go fmt updates
2016-01-12 16:07:26 -06:00
Radek Simko
f8bb48b287
aws: Wait for ECS service to be drained before deletion
2015-12-22 21:11:16 +01:00
Radek Simko
583c0a54c4
aws: Fix bug w/ changing ECS service LB association
...
- fixes #3444
- fixes #4227
2015-12-22 21:10:23 +01:00
Radek Simko
00d0551933
aws: Add missing dereference operator
2015-11-16 23:19:45 +00:00
clint shryock
901e5fbf9f
fix log reference
2015-11-16 17:14:02 -06:00
clint shryock
8085e55eda
fix issue with undefined var
2015-11-16 16:29:52 -06:00
Radek Simko
0822776de0
provider/aws: If ecs_service isn't found during Read, delete it
2015-11-13 21:45:21 +00:00
Radek Simko
d9a5de7f7d
provider/aws: Prevent crashing when deleting ecs_service which is gone
...
- fixes https://github.com/hashicorp/terraform/issues/3868
2015-11-13 21:42:29 +00:00
Radek Simko
bcd63f62a3
provider/aws: Log removal of INACTIVE ECS service
2015-11-11 23:53:59 +00:00
Radek Simko
9683896480
provider/aws: Treat ecs_service w/ Status==INACTIVE as deleted
...
- fixes https://github.com/hashicorp/terraform/issues/3582
2015-11-09 20:46:05 +01:00
Radek Simko
784aadd505
Allow cluster name, not only ARN for aws_ecs_service
2015-10-28 15:43:42 +00:00
Radek Simko
00646b1d7b
ecs_service: Remove unused code
2015-08-23 17:45:52 +01:00
Radek Simko
669d196a58
ecs_service: Role name can be used in iam_role (ARN was supported)
...
- fixes #2722
2015-08-23 17:42:15 +01:00
Radek Simko
fad019e950
ecs_service: Retry if IAM policy isn't ready yet
...
- fixes #2869
2015-08-23 17:37:29 +01:00
Clint Shryock
0c2f189d08
provider/aws: Update to aws-sdk 0.9.0 rc1
2015-08-17 13:27:16 -05:00
Clint Shryock
579ccbefea
provider/aws: Update source to comply with upstream breaking change
2015-07-28 15:29:46 -05:00
Radek Simko
c4a2df9e93
aws: Improve formatting of debug logs
2015-07-12 15:36:47 +01:00
Radek Simko
21e4b5e3cf
aws: Use ClientToken when creating ecs_service
2015-07-12 14:37:39 +01:00
Radek Simko
c72c5cebff
aws: Allow migrating (recreating) ecs_service to another cluster
2015-07-12 14:37:39 +01:00
Radek Simko
ebaa9bde2a
provider/aws: Add new resource - aws_ecs_service
2015-06-03 22:48:17 +01:00