Sceptre is a tool to drive Cloudformation, to automate cloud deployments.
Questions tagged [sceptre]
15 questions
3
votes
0 answers
How to add a custom filter to Jinja2 and bundle in Sceptre project?
I would like to add a filter like the Ansible ipaddr filter to a Cloudreach Sceptre project with Jinja2 templates. I'm not proficient with Python but I've seen the Jinja2 documentation on adding custom filters, but this does not demystify for me how…

Fo.
- 3,752
- 7
- 28
- 44
2
votes
0 answers
How to run python script before any stack updates using Sceptre
I have a Python script that I'd like to run before any stack is updated and deployed. From my research, I know I need to use hooks and likely the hook point before_update.
What I can't find is the syntax for running a python script from the hook,…

person1234568475
- 85
- 1
- 7
1
vote
1 answer
Unable to set environment variable with Sceptre pre hooks
I'm trying to set an environment variable using sceptre !cmd hooks(before create/update), which can be then resolved by sceptre_user_data with !environment_variable resolver within the same config file.
The command works well, when executed from…

schaganti
- 25
- 2
1
vote
0 answers
How to pass a variable or resolver as an argument to a hook in Sceptre?
I'm trying to use one of the outputs of my CloudFormation template as a parameter to a !cmd hook - e.g.
hooks:
after_create:
- !cmd "echo {{ value of cloudformation output }}"
Is there a way to do this?

Scott Odle
- 290
- 1
- 2
- 16
0
votes
0 answers
Is there a reason for getting the Sceptre resolver error?
I am running into an error while deploying an application to Cloudformation
ModuleNotFoundError: No module named 'sceptre.resolvers.join'
I tried to delete my local stack using Sceptre. I am trying to deploy my local stack with resources defined…
0
votes
1 answer
How do I add origin access control to S3 object within sceptre template?
I can use AWS console to follow directions and set up an S3 object behind CloudFront using an "origin access control." There's a trickiness in a certain ordering of creating and updating distributions and bucket policies. I've been unable to figure…

Kevin S
- 497
- 2
- 10
0
votes
1 answer
How to confirm which AWS account I am launching Sceptre on?
I use Sceptre to manage AWS infrastructure, but not always in a CI/CD pipeline. Sometimes updates are manual. In that case, the engineer will set the environment variables corresponding to the AWS account (usually there are three accounts per…

Law29
- 637
- 1
- 10
- 16
0
votes
1 answer
How to run Sceptre hook for ANY stack update (without having to define explicitly for every stack)
I have a hook that I'd like to run every time ANY stack is updated. I know that I can define a hook on a per stack basis, but I'd like to define a hook globally that will run for every stack I have when it gets updated.

person1234568475
- 85
- 1
- 7
0
votes
1 answer
Is there anyway to use try/catch in troposphere?
I'm using sceptre user data and I can't use AWS::NoValue with it. Since I don't want to change the current template much, I want to do a workaround but I see a warning in try line, which is Expected expression Pylance. How can I use try catch in…

cosmos-1905-14
- 783
- 2
- 12
- 23
0
votes
1 answer
sceptre create fails with ERROR : "Session credentials were not found. Profile: None. Region: us-east-1."
I have two aws profiles in my config file like below
[profile projet]
region = us-east-1
output = json
[profile accPersonal]
region = us-east-1
output = json
and their respective credential files like below
[accPersonal]
aws_access_key_id =…

ashakshan
- 419
- 1
- 5
- 17
0
votes
1 answer
create a service catalog i am role in cloudformation template
I have an IAM role in my current CFN template, but I dont have permission to directly create IAM in this account so I need to convert this to a service catalog code in my template:
Here is the original code:
MongoDBRole:
Type: 'AWS::IAM::Role'
…

Theonestar
- 55
- 5
0
votes
2 answers
cloudformation sceptre: How to parameterize a list of json objects
I am using sceptre and troposphere to generate my architecture.
In AWS Batch Job Definition, I want to parameterize the Environment of the job definition's container…

simonso
- 595
- 1
- 8
- 19
0
votes
1 answer
add a variable to the resolver output with sceptre
I have scenario in describing a stack in sceptre where I have to append an already known port number to the hostname/ip that I can get from the resolver like this:
LdapServerURL: !stack_output_external some-stack::Host
I wish to have the…

Biplab
- 233
- 4
- 15
0
votes
1 answer
Error downloading the Sceptre
Below is the error when I am trying to install the particular version(1.2.1) of sceptre not the latest version,Please advise. Thanks.
$ pip install -e sceptre-1.2.1
sceptre-1.2.1 should either be a path to a local project or a VCS url beginning with…

sam
- 77
- 2
- 11
0
votes
1 answer
How to script AWS VPC with Cloudformation seeded by Docker
I want to confirm my approach to setting up a VPC using cloudformation/scepter and seeding instances with docker container is correct.
Create an aws ec2 instance.
Create a docker image on that instance
Create a cloudformation VPC template (.yaml )
…

tylercomp
- 871
- 3
- 13
- 25