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.

Why did Former2 try to CreateServiceLinkedRole

See original GitHub issue

After pressing Scan, two API calls appeared in CloudTrail:

  1. SearchProvisionedProducts, which seems legit to me.
  2. The one below. One second after the first one. Not sure why it happened on us-east-1, too, since all I have is on ca-central-1.

image

Why exactly did it try to do that?

Also, this was ultimately generated after selecting Include all Resources (see the typo with ${IAMGroup}istrative):

  IAMServiceLinkedRole2:
    Type: "AWS::IAM::ServiceLinkedRole"
    Properties:
      AWSServiceName: "support.amazonaws.com"
      Description: !Sub "Enables resource access for ${EC2PrefixList.OwnerId} to provide billing, ${IAMGroup}istrative and support services"

Additionally, since I scanned (three times I think?), I have a forecasted monthly cost of 0.02$.

I’ve also no idea why it apparently discovered LoadBalancers, and some EC2PrefixList which point to S3 and DynamoDB considering I never spinned up any of those things. Same for ElastiCacheParameterGroup, and OpsWorksUserProfile, and ElasticBeanstalkApplication, and ApiGatewayAccount, and AthenaWorkGroup, and GlueDataCatalogEncryptionSettings


Otherwise, thank you for Former2 ! It’s an awesome service. Saved me days of work by generating a pretty nice >600 LOC template.

Issue Analytics

  • State:open
  • Created 3 years ago
  • Comments:9 (5 by maintainers)

github_iconTop GitHub Comments

1reaction
iann0036commented, Oct 24, 2020

Hey @payne911,

Just returning back to the original question you had, I’ve discussed this with the AWS service teams and it does seem that calling globalaccelerator.ListAccelerators will trigger the internal call to iam.CreateServiceLinkedRole to make the Global Accelerator SLR.

It seems this is an uncontrollable side-effect of making that call, which is required to list the accelerators within the account.

1reaction
iann0036commented, Oct 9, 2020

Hey @payne911,

There is a bunch of services which charge for Get/List calls (example), so I’ll make an update to the README to reflect this.

I notice your sample templates have been pulled from Pastebin before I got to them, so feel free to shoot me an email with the details.

As for CloudFormation itself, it is generally very good at cleaning up its own resources when you delete the stack, however consequential resources like CloudWatch logs would remain so make sure to consider this. A billing alarm will catch overages, however you should plan to be billed a dollar or two for small things like this.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Accelerate infrastructure as code development with open ...
Former2 is an open source project that allows you to generate IaC templates (for example, AWS CloudFormation or HashiCorp Terraform) from ...
Read more >
Former2
Welcome to Former2! Former2 allows you to generate Infrastructure-as-Code outputs from your existing resources within your AWS account.
Read more >
Tag Archives: Amazon Elastic File System (EFS) - Noise
Amazon EFS is built to provide serverless, fully elastic file storage that lets you share file data for your cloud-based applications without having...
Read more >
Former2 - AWS Infrastructure to CloudFormation - Automat-IT
Where was obvious - on the ~/.aws/credentials file. ○ How needed more brainstorming. This is the main file, undoubtedly one of the most....
Read more >
Developing Former2 with Ian Mckay | Build On Open Source ...
In this episode, Derek and Ricardo talk with a special guest, AWS Hero Ian Mckay. Ian Mckay is an open source builder and...
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