geekmuse / iot-button-ec2-controller Goto Github PK
View Code? Open in Web Editor NEWAllows the start/stop of EC2 instances using an AWS IoT button
License: MIT License
Allows the start/stop of EC2 instances using an AWS IoT button
License: MIT License
No matter what I try and I've double checked as well as copied and pasted function name from cli command 'aws lambda list-functions'. Any thoughts on why the function can't be found?
[root@antlet12 iot-button-ec2-controller]# grunt deploy
Running "lambda_package:default" (lambda_package) task
[email protected] ../../tmp/1521421419985.6768/node_modules/iot-button-ec2-controller
└── [email protected]
Created package at ./dist/iot-button-ec2-controller_1-0-0_2018-2-18-18-3-39.zip
Running "lambda_deploy:default" (lambda_deploy) task
Warning: Unable to find lambda function arn:aws:lambda:us-west-2:570656418299:function:myButtonFunction03, verify the lambda function name and AWS region are correct. Use --force to continue.
Aborted due to warnings.
@geekmuse When running "grunt deploy" I get an API credential failure. Do you know how to resolve? Where is the credential defined?
[root@antlet12 iot-button-ec2-controller]# grunt deploy
Running "lambda_package:default" (lambda_package) task
[email protected] ../../tmp/1521416107771.2512/node_modules/iot-button-ec2-controller
└── [email protected]
Created package at ./dist/iot-button-ec2-controller_1-0-0_2018-2-18-16-35-7.zip
Running "lambda_deploy:default" (lambda_deploy) task
AWS API request failed with undefined - TimeoutError: Missing credentials in config
Warning: Check your AWS credentials, region and permissions are correct. Use --force to continue.
Aborted due to warnings.
Hi,
i have the same issue than @tupacalypse187. When I try with a Test lambda I have:
{
"msg": "No instances in a state to be affected by this operation.",
"instanceIds": []
}
How I can fix that?
On my VM I have the tag KEY=IoT Enabled VALUE=IoT Enabled
I config on the index.js the region : AWS.config.region = 'eu-west-3';
When I click on the button, nothing happen.
Many thanks
Thanks for putting this code together. I'm playing around with the AWS Button and have this issue when working with your code. Do you recall how to resolve? Thank you.
$ npm install -->
npm WARN [email protected] requires a peer of grunt@~0.4.5 but none was installed.
npm ERR! code 1
Hi - Can you build out and see if all works? Maybe something has changed on AWS end. I have an EC2 instance with a tag 'Name' -> 'IoT Enabled' and pressing the button does not start or stop EC2. I also do not see any action in the logs besides SINGLE/DOUBLE. Am I labeling the tag correctly? Key = Name, Value = IoT Enabled?
All code is deployed and lambda is operationally ready. Thank you.
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.