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

provider/aws: Update IAM Server Cert #5178

Merged
merged 2 commits into from
Feb 22, 2016
Merged

Conversation

catsby
Copy link
Contributor

@catsby catsby commented Feb 17, 2016

This PR updates IAM Server Cert to allow name_prefix, auto generated names.

This will fix #5158 by allowing users to use the create_before_destroy lifecycle block with IAM Server Certificate resources.

Also fixes:

…ated namesprovider/aws: Update IAM Server Cert to allow name_prefix, auto generated namesdiff
@catsby
Copy link
Contributor Author

catsby commented Feb 17, 2016

Oh hey, this fixes #4689 , which I authored. How about that...

value := v.(string)
if len(value) > 255 {
errors = append(errors, fmt.Errorf(
"%q cannot be longer than 255 characters", k))
Copy link
Contributor

Choose a reason for hiding this comment

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

Name here is 255 characters but name_prefix says 128. Which is correct?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

good catch, I'll update

The server cert name itself is limited to 128, fat-finger copy-paste by me (copied from you, actually 😄 )

@stack72
Copy link
Contributor

stack72 commented Feb 17, 2016

@catsby 1 small question about name lengths bit apart from that LGTM!

ForceNew: true,
ValidateFunc: func(v interface{}, k string) (ws []string, errors []error) {
value := v.(string)
if len(value) > 30 {
Copy link
Contributor Author

Choose a reason for hiding this comment

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

This is kind of arbitrary but seemed sufficient...

Copy link
Contributor

Choose a reason for hiding this comment

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

This looks like a good portion to allow as a prefix

@stack72
Copy link
Contributor

stack72 commented Feb 18, 2016

@catsby this is also good to merge now!

@phinze
Copy link
Contributor

phinze commented Feb 22, 2016

LGTM

stack72 added a commit that referenced this pull request Feb 22, 2016
@stack72 stack72 merged commit 30dcc45 into master Feb 22, 2016
@jen20 jen20 deleted the f-aws-iam-server-updates branch February 22, 2016 18:09
vancluever pushed a commit to paybyphone/terraform that referenced this pull request Nov 17, 2016
Looks like sometimes it takes some time for IAM certificates to
propagate, which can cause errors on ALB listener creation.
Possibly same thing as hashicorp#5178, but for ALB
now instead of ELB.

This was discovered via acceptance tests, specifically the
TestAccAWSALBListener_https test. Updated the creation process to wait
on CertificateNotFound for a max of 5min.
stack72 pushed a commit that referenced this pull request Nov 17, 2016
#10180)

Looks like sometimes it takes some time for IAM certificates to
propagate, which can cause errors on ALB listener creation.
Possibly same thing as #5178, but for ALB
now instead of ELB.

This was discovered via acceptance tests, specifically the
TestAccAWSALBListener_https test. Updated the creation process to wait
on CertificateNotFound for a max of 5min.
stack72 pushed a commit that referenced this pull request Nov 17, 2016
#10180)

Looks like sometimes it takes some time for IAM certificates to
propagate, which can cause errors on ALB listener creation.
Possibly same thing as #5178, but for ALB
now instead of ELB.

This was discovered via acceptance tests, specifically the
TestAccAWSALBListener_https test. Updated the creation process to wait
on CertificateNotFound for a max of 5min.
jrnt30 pushed a commit to jrnt30/terraform that referenced this pull request Nov 17, 2016
hashicorp#10180)

Looks like sometimes it takes some time for IAM certificates to
propagate, which can cause errors on ALB listener creation.
Possibly same thing as hashicorp#5178, but for ALB
now instead of ELB.

This was discovered via acceptance tests, specifically the
TestAccAWSALBListener_https test. Updated the creation process to wait
on CertificateNotFound for a max of 5min.
gusmat pushed a commit to gusmat/terraform that referenced this pull request Dec 6, 2016
hashicorp#10180)

Looks like sometimes it takes some time for IAM certificates to
propagate, which can cause errors on ALB listener creation.
Possibly same thing as hashicorp#5178, but for ALB
now instead of ELB.

This was discovered via acceptance tests, specifically the
TestAccAWSALBListener_https test. Updated the creation process to wait
on CertificateNotFound for a max of 5min.
fatmcgav pushed a commit to fatmcgav/terraform that referenced this pull request Feb 27, 2017
hashicorp#10180)

Looks like sometimes it takes some time for IAM certificates to
propagate, which can cause errors on ALB listener creation.
Possibly same thing as hashicorp#5178, but for ALB
now instead of ELB.

This was discovered via acceptance tests, specifically the
TestAccAWSALBListener_https test. Updated the creation process to wait
on CertificateNotFound for a max of 5min.
@ghost
Copy link

ghost commented Apr 28, 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 have found a problem that seems similar to this, please open a new issue and complete the issue template so we can capture all the details necessary to investigate further.

@ghost ghost locked and limited conversation to collaborators Apr 28, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

(aws_iam_server_certificate) Error when creating SSL Certificate
3 participants