-
Notifications
You must be signed in to change notification settings - Fork 9.7k
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
AWS Opsworks Rails App Layer ignores manage_bundler #5907
Comments
Thanks for reporting this, @ldhertert. I did some initial investigation here but didn't have time yet to dig deep. The rest of this comment is just some notes for future-me or anyone else that wants to try to debug this: The opsworks layer attributes are implemented in a generic, schema-driven way so I think there are two obvious ways in which this could be broken:
The documentation shows that there is indeed an attribute called As far as I can tell there is no real documentation for what values are expected for each attribute, so the values used by Terraform were figured out by trying things in the UI and then checking how they appeared in the API responses. However, it's possible that there are some inconsistencies in these that I didn't catch in the original implementation work. When I get a chance I'll try to repro this and see how what Terraform is writing is different to what the AWS console writes when populating this attribute. |
I think I found a similar bug while testing #4419 (opsworks app). There some optional arguments that can be passed to the aws api depending on the application type. The issue is that the attributes value is always empty, regardless of what was configured. See the following example, where resource "aws_opsworks_application" "app" {
name = "${var.name}"
short_name = "${var.short_name}"
type = "other"
stack_id = "${var.stack_id}"
app_source = {
type = "${var.source_type}"
url = "${var.source_url}"
revision = "${var.source_revision}"
ssh_key = "${file("${var.deploy_ssh_key_file}")}"
}
document_root = "web"
} Even if the resource was modified manually by setting the document root parameter to any string,
The |
I poked at this a little today. First issue is here in opsworks_layers.go var (
opsworksTrueString = "1"
opsworksFalseString = "0"
) Should be: var (
opsworksTrueString = "true"
opsworksFalseString = "false"
) That small change actually resolves @ldhertert initial issue. If you |
Stuck on the same issue with |
This is fixed via #7219 |
@stack72 That close may be a little premature... Did you see why I didn't take credit for a two line PR previously (above)? |
@stack72 Please reopen this, my code that dlanner created the PR for doesn't fix this issue. |
Reopened on request :) |
Thx! 🍻 |
@janschumann if that PR will close this PR then I would love that :) |
Verified that this works via #10669 |
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. |
Any rails app later created by terraform has "Install and manage Bundler" set to "no", regardless of the value placed in the terraform config. Using terraform v0.6.14.
The text was updated successfully, but these errors were encountered: