Hi,
I'm very new to troposphere, my goal is to use it as IaC for AWS, I noticed that there is not much documentation or examples in comparison with Terraform or Ansible.
I'm trying some code and it happens that now that I wanted to import "securitygroup" I get error below.
ERROR:
from troposphere.ecs import (SecurityGroup, SecurityGroupRule)
ImportError: cannot import name 'SecurityGroup' from 'troposphere.ecs' (/home/blabla/.local/lib/python3.8/site-packages/troposphere/ecs.py)
I can import in my script many functions but these two, it is just adding them and I get the error, btw I see all the libraries under "ecs.py".
from troposphere.ecs import (
AwsvpcConfiguration,
Cluster,
ContainerDefinition,
NetworkConfiguration,
PortMapping,
Service,
TaskDefinition,
SecurityGroup,
SecurityGroupRule,
)
Is there anyone able to point out what I am missing in here?.
Maybe I do need to build a separate stack with another script?, thank you.