Skip to content

[feature] allow versioning via S3 paths #725

@AndreiBarbuOz

Description

@AndreiBarbuOz

Describe the Feature
Allow taskcat upload to handle subpaths in the .project.name key would enable versioning of templates via subpaths.

aws-quickstart-project
├── v1.1
│   ├── templates
│   │   ├── main.template.yaml
│   │   └── nested1.template.yaml
│   └── scripts
└── v1.2
    ├── templates
    │   ├── main.template.yaml
    │   └── nested1.template.yaml
    └── scripts

To Reproduce

  1. Are you testing a QuickStart or Custom template? -> QuickStart
  2. Attach or link a copy of the template if possible (remove any sensitive info) -> https://github.com/aws-quickstart/quickstart-uipath-automation-suite
  3. Provide the parameters that you passed. (remove any sensitive info) -> N/A
  4. How did you install taskcat? (docker or pip3) -> pip3
  5. Are you using a profile, an instance role or access keys to run taskcat? -> no
  6. Is your AWS environment configured via aws configure? -> yes

Expected behavior
For an existing stack, if a user uses the update-stack functionality, the nested templates are "pulled" or "downloaded" from the S3 bucket.
This means that a main template can be updated using the content at the point of deployment, but it will reference the updated versions during the update-stack process.

Screenshots

andrei@DESKTOP:aws-quickstart-project $ taskcat upload
 _            _             _
| |_ __ _ ___| | _____ __ _| |_
| __/ _` / __| |/ / __/ _` | __|
| || (_| \__ \   < (_| (_| | |_
 \__\__,_|___/_|\_\___\__,_|\__|



version 0.9.30
[ERROR  ] : ValidationError 'aws-quickstart-project/v1' does not match '^[a-z0-9-]*$'

Failed validating 'pattern' in schema['properties']['project']['properties']['name']:
    {'description': 'Project name, used as s3 key prefix when uploading '
                    'objects',
     'examples': ['my-project-name'],
     'pattern': '^[a-z0-9-]*$',
     'type': 'string'}

On instance['project']['name']:
    'aws-quickstart-project/v1'

**Version (Please make sure you are running the latest version of taskcat)

  • Taskcat Version: 0.9.30

Additional context
Add any other context about the problem here.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions