question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

AWS cloud runner not deploying when I specify a security group

See original GitHub issue

I’m launching a runner with the command in Github Actions.

cml-runner \
          --cloud aws \
          --cloud-region eu-west-1 \
          --cloud-type=g4dn.2xlarge \
          --cloud-aws-security-group="123123123123" \
          --labels=cml-runner

Without specifying security group it works, I presume by launching in the default group. However, when I run the above I get a terraform error,

Error: Failed creating the machine: no Security Groups found\n│ \n│   with iterative_cml_runner.runner,\n│   on main.tf line 14, in resource \"iterative_cml_runner\" \"runner\":\n│   14: resource \"iterative_cml_runner\" \"runner\" {\n│ \n╵\n","stack":"Error: terraform -chdir='/home/runner/.cml/cml-4vgypkb6gn' apply -auto-approve\n\t\nTerraform used the selected providers to generate the following execution\nplan. Resource actions are indicated with the following symbols:\n  + create\n\nTerraform will perform the following actions:\n\n 

How do I debug this?

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:20 (12 by maintainers)

github_iconTop GitHub Comments

3reactions
dacbdcommented, Dec 22, 2021

@skailasa it might be unclear in the docs, this param takes the security group name and not the ID, see this:

tempsnip

2reactions
DouglasLivingstonecommented, May 6, 2022

Thank you all for the help here, this is working using the security group name 🚀

Read more comments on GitHub >

github_iconTop Results From Across the Web

Troubleshoot EC2/On-Premises deployment issues
Try one of the following: Assign a public IP address to the instance and use its route table to allow internet access.
Read more >
Work with security groups - Amazon Elastic Compute Cloud
In the navigation pane, choose Security Groups. · Select the security group to copy and choose Actions, Copy to new security group. ·...
Read more >
Security in App Runner - AWS Documentation
Configure AWS App Runner to meet your security and compliance objectives, and learn how to use other AWS services that help you to...
Read more >
Enabling VPC access for outgoing traffic - AWS App Runner
You can optionally specify the security groups that App Runner uses to access AWS under the specified subnets. If you don't specify security...
Read more >
New for App Runner – VPC Support | AWS News Blog
If you want, App Runner can also configure a deployment pipeline for you ... that specify which VPC, subnets, and security groups to...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found