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

TemplateURL with Nested Stacks is not updated #32

Closed
dkhmelenko opened this issue Jul 29, 2020 · 7 comments
Closed

TemplateURL with Nested Stacks is not updated #32

dkhmelenko opened this issue Jul 29, 2020 · 7 comments
Assignees
Labels
bug Something isn't working enhancement New feature or request

Comments

@dkhmelenko
Copy link

I'm getting the following error TemplateURL must be an Amazon S3 URL. whenever I'm using a nested stack.

My root stack looks like this

AWSTemplateFormatVersion: '2010-09-09'
Description: 'Root stack template'
Resources:
  ObjectStorageStack:
    Type: AWS::CloudFormation::Stack
    Properties: 
      TemplateURL: 'object_storage_template.yml'

And nested stack is in file object_storage_template.yml

Resources:
    ObjectBucket:
      Type: AWS::S3::Bucket

I would expect that this deploy action performs packaging and therefore the TemplateURL gets updated.

Is this behavior supported by this action?

@katallaxie katallaxie self-assigned this Jul 29, 2020
@katallaxie katallaxie added bug Something isn't working enhancement New feature or request labels Jul 29, 2020
@katallaxie
Copy link
Contributor

The behavior is not supported by the action. How would like to have this behavior implemented? We would have to govern a bucket and perhaps resolved some other things.

@dkhmelenko
Copy link
Author

Ideally, it would be cool to execute aws cloudformation package, but seems there is no such option in SDKs so far. That being set we need to upload nested stack beforehand to S3.

That would be fine for now, but we need to pass S3 bucket name to the config somehow. I was expected to specify the configuration in key-value pair as s3-bucket=<my_bucket_name>, however, it doesn't work.

@katallaxie
Copy link
Contributor

Let me point out, that

template can be an S3 url. So you could upload everything before and then execute with the action. However, there is no officially supported action for the upload.

@dkhmelenko
Copy link
Author

I would prefer to have a template in a repository and then get it to upload through this action to AWS. As far as I know, CloudFormation uploads the template first to S3. Is it possible to know what is the S3 bucket used?

@katallaxie
Copy link
Contributor

In order to support the behavior we will have to replicate the upload behavior of the AWS CLI.

@dkhmelenko
Copy link
Author

Correct. I realized that. So far my solution works in a way that I have to run aws cloudformation package command. Would be nice to have it as part of this action.

If this is not planned, feel free to close this issue.

@katallaxie
Copy link
Contributor

closing this in favour of #33

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants