sceptre / sceptre-ssm-resolver Goto Github PK
View Code? Open in Web Editor NEWA Sceptre resolver to retrieve values from the AWS SSM
A Sceptre resolver to retrieve values from the AWS SSM
Hi,
thank you for providing this useful resolver.
it would be great to have to possibility to provide an optional aws profile, for fetching parameters from a different account (like it is possible with the stack_output_external resolver https://sceptre.cloudreach.com/2.4.0/docs/resolvers.html#stack-output-external)
I might be missing something, any help would be appreciated.
Any one else come across this issue?
I have installed sceptre-ssm-resolver
Sceptre = 2.3.0
[email protected]
Note: I have changed the sceptre project name with , the path is correct when I am running the sceptre launch command.
Traceback (most recent call last):
File "/usr/local/bin/sceptre", line 11, in
load_entry_point('sceptre==2.3.0', 'console_scripts', 'sceptre')()
File "/usr/local/Cellar/sceptre/2.3.0/libexec/lib/python3.8/site-packages/click/core.py", line 829, in call
return self.main(*args, **kwargs)
File "/usr/local/Cellar/sceptre/2.3.0/libexec/lib/python3.8/site-packages/click/core.py", line 782, in main
rv = self.invoke(ctx)
File "/usr/local/Cellar/sceptre/2.3.0/libexec/lib/python3.8/site-packages/click/core.py", line 1259, in invoke
return _process_result(sub_ctx.command.invoke(sub_ctx))
File "/usr/local/Cellar/sceptre/2.3.0/libexec/lib/python3.8/site-packages/click/core.py", line 1066, in invoke
return ctx.invoke(self.callback, **ctx.params)
File "/usr/local/Cellar/sceptre/2.3.0/libexec/lib/python3.8/site-packages/click/core.py", line 610, in invoke
return callback(*args, **kwargs)
File "/usr/local/Cellar/sceptre/2.3.0/libexec/lib/python3.8/site-packages/click/decorators.py", line 21, in new_func
return f(get_current_context(), *args, **kwargs)
File "/usr/local/Cellar/sceptre/2.3.0/libexec/lib/python3.8/site-packages/sceptre/cli/helpers.py", line 36, in decorated
return func(*args, **kwargs)
File "/usr/local/Cellar/sceptre/2.3.0/libexec/lib/python3.8/site-packages/sceptre/cli/launch.py", line 35, in launch_command
plan = SceptrePlan(context)
File "/usr/local/Cellar/sceptre/2.3.0/libexec/lib/python3.8/site-packages/sceptre/plan/plan.py", line 34, in init
all_stacks, command_stacks = config_reader.construct_stacks()
File "/usr/local/Cellar/sceptre/2.3.0/libexec/lib/python3.8/site-packages/sceptre/config/reader.py", line 228, in construct_stacks
stack = self._construct_stack(rel_path, stack_group_config)
File "/usr/local/Cellar/sceptre/2.3.0/libexec/lib/python3.8/site-packages/sceptre/config/reader.py", line 482, in _construct_stack
config = self.read(rel_path, stack_group_config)
File "/usr/local/Cellar/sceptre/2.3.0/libexec/lib/python3.8/site-packages/sceptre/config/reader.py", line 304, in read
this_config = self._recursive_read(directory_path, filename, config)
File "/usr/local/Cellar/sceptre/2.3.0/libexec/lib/python3.8/site-packages/sceptre/config/reader.py", line 345, in _recursive_read
child_config = self._render(directory_path, filename, stack_group_config) or {}
File "/usr/local/Cellar/sceptre/2.3.0/libexec/lib/python3.8/site-packages/sceptre/config/reader.py", line 392, in _render
config = yaml.safe_load(rendered_template)
File "/usr/local/Cellar/sceptre/2.3.0/libexec/lib/python3.8/site-packages/yaml/init.py", line 162, in safe_load
return load(stream, SafeLoader)
File "/usr/local/Cellar/sceptre/2.3.0/libexec/lib/python3.8/site-packages/yaml/init.py", line 114, in load
return loader.get_single_data()
File "/usr/local/Cellar/sceptre/2.3.0/libexec/lib/python3.8/site-packages/yaml/constructor.py", line 43, in get_single_data
return self.construct_document(node)
File "/usr/local/Cellar/sceptre/2.3.0/libexec/lib/python3.8/site-packages/yaml/constructor.py", line 52, in construct_document
for dummy in generator:
File "/usr/local/Cellar/sceptre/2.3.0/libexec/lib/python3.8/site-packages/yaml/constructor.py", line 405, in construct_yaml_map
value = self.construct_mapping(node)
File "/usr/local/Cellar/sceptre/2.3.0/libexec/lib/python3.8/site-packages/yaml/constructor.py", line 210, in construct_mapping
return super().construct_mapping(node, deep=deep)
File "/usr/local/Cellar/sceptre/2.3.0/libexec/lib/python3.8/site-packages/yaml/constructor.py", line 135, in construct_mapping
value = self.construct_object(value_node, deep=deep)
File "/usr/local/Cellar/sceptre/2.3.0/libexec/lib/python3.8/site-packages/yaml/constructor.py", line 92, in construct_object
data = constructor(self, node)
File "/usr/local/Cellar/sceptre/2.3.0/libexec/lib/python3.8/site-packages/yaml/constructor.py", line 419, in construct_undefined
raise ConstructorError(None, None,
yaml.constructor.ConstructorError: could not determine a constructor for the tag '!ssm'
in "", line 12, column 5:
!ssm /production// ...
^
Currently, it appears as though the SSM Resolver has a hard coded use of profile (https://github.com/Sceptre/sceptre-ssm-resolver/blob/master/resolver/ssm.py#L60)
I am not familiar with the code in this project so I am looking for a little assistance in supporting the use of iam_role from the ConnectionManager (https://github.com/Sceptre/sceptre/blob/master/sceptre/connection_manager.py#L259)
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.