bastion:tunnel
Overview and basic usage
Opens bastion tunnel to the resource specified by resourceName
- Your stack must contain
bastion
resource type to perform this command. - Opening tunnels can be useful for accessing resources protected in VPC.
- If you do not specify
--bastionResource
argument when using this command, random bastion from your stack is used. - After tunnels are open, command will print the tunneled endpoints to the terminal.
- Session is established using secured SSM connection.
- For more information refer to bastion docs.
Copy
stacktape bastion:tunnel --stage <<stage>> --region <<region>> --resourceName <<resourceName>>
API reference
Options
region (--r)
Required
resourceName (--rn)
Required
stage (--s)
Required
awsAccount (--aa)
bastionResource (--br)
configPath (--cp)
currentWorkingDirectory (--cwd)
help (--h)
logFormat (--lf)
logLevel (--ll)
profile (--p)
projectName (--prj)
templateId (--ti)