Sceptre: launche sceptre template from s3

Created on 30 Apr 2019  路  8Comments  路  Source: Sceptre/sceptre

I use sceptre to launch multiple stacks for dev/prod environments. However, one of the stacks is too long: templateBody' failed to satisfy constraint: Member must have length less than or equal to 51200 How can I use sceptre from s3 to solve this issue?

The template I have is a jinja file where I populate the permissions policy with a for loop. That's why it's quite long

Most helpful comment

@laur1s have you defined template_bucket_name in your sceptre group config?

All 8 comments

I also tried to run sceptre generate EC/TEST/elasticsearch.yaml | aws s3 cp - s3://my-bucket/template.yaml However, Sceptre generate produces malformed YAML file ['AWSTemplateFormatVersion: \'2010-09-09\'\nDescription: ElasticSearch dev service stack\n\nPara

Hey @laur1s - sceptre should upload the template to s3 for you for this reason. What is the command you are using?

I use sceptre launch

Strange... Can you run sceptre validate EC?

It only produces error that the template is too long at 'templateBody' failed to satisfy constraint: Member must have length less than or equal to 51200 If I make my template shorter by removing some arguments from elasticsearch policy it works

@laur1s have you defined template_bucket_name in your sceptre group config?

@laur1s yes sorry got ahead of myself @craighurley is correct you will need to specify template_bucket_name - in this case it probably hasn't been specified.

Thanks @craighurley and @ngfgrant . That's the issue I had

Was this page helpful?
0 / 5 - 0 ratings

Related issues

ngfgrant picture ngfgrant  路  6Comments

ivanilves picture ivanilves  路  4Comments

m1keil picture m1keil  路  6Comments

n2taylor picture n2taylor  路  7Comments

andyoll picture andyoll  路  7Comments