Comments (3)
Likely this doesn’t work because Docker gets the AWS credentials via the environment but doesn’t pass them to sub processes now.
Possible solutions:
- copy .aws directory to container
- bind .aws directory to container
- copy environment variable credentials to sub process environment
from aws-greengrass-provisioner.
Error message looks like this:
master: Pulling from timmattison/aws-greengrass-provisioner
Digest: sha256:07c377ef87195da655f90a686d4e2398af22d51e5f91ff288e9afb0ec8f24e8f
Status: Image is up to date for timmattison/aws-greengrass-provisioner:master
[INFO] BasicGroupTestHelper: Downloading Device Tester to [/tmp/devicetester336027927627193391zip] ...
[INFO] BasicGroupTestHelper: Extracting Device Tester to [/tmp/d7a8cb46-259a-4de7-ad7a-6e1813e151894481856563164363207] ...
[INFO] BasicGroupTestHelper: Download and extraction of Device Tester is complete
[INFO] BasicIoHelper: Connected to device under test
[INFO] BasicGroupTestHelper: Not cleaning or generating the config in /var/lib/GGQ
[INFO] BasicGroupTestHelper: Stopping Greengrass if it is running
[INFO] Starting test | ggc_user_group_check_test_1
Exception in thread "Thread-4" java.lang.RuntimeException: No match for log message [time="2019-04-08T13:36:39Z" level=error msg=aws credentials not found: EnvAccessKeyNotFound: AWS_ACCESS_KEY_ID or AWS_ACCESS_KEY not found in environment executionId=5687202b-5a03-11e9-bb78-0242ac110002 suiteId=GGQ groupId=ggcdependencies testCaseId=ggc_user_group_check_test_1 deviceId=DUT]
at com.awslabs.aws.greengrass.provisioner.implementations.helpers.BasicDeviceTesterHelper.getLogMessageType(BasicDeviceTesterHelper.java:78)
at com.awslabs.aws.greengrass.provisioner.implementations.helpers.BasicDeviceTesterHelper.log(BasicDeviceTesterHelper.java:86)
at com.awslabs.aws.greengrass.provisioner.implementations.helpers.BasicGroupTestHelper.handleLogMessage(BasicGroupTestHelper.java:402)
at com.awslabs.aws.greengrass.provisioner.implementations.helpers.BasicGroupTestHelper.lambda$execute$2(BasicGroupTestHelper.java:257)
at java.util.Iterator.forEachRemaining(Iterator.java:116)
at java.util.Spliterators$IteratorSpliterator.forEachRemaining(Spliterators.java:1801)
at java.util.stream.ReferencePipeline$Head.forEach(ReferencePipeline.java:580)
at com.awslabs.aws.greengrass.provisioner.implementations.helpers.BasicProcessHelper.lambda$innerGetOutputFromProcess$2(BasicProcessHelper.java:60)
at java.lang.Thread.run(Thread.java:748)
[INFO] BasicGroupTestHelper: Test duration: [PT2.352S]
[INFO] BasicGroupTestHelper: Tests executed:
[INFO] BasicGroupTestHelper: Tests passed:
[WARN] BasicGroupTestHelper: Tests failed:
from aws-greengrass-provisioner.
Fixed in #74
from aws-greengrass-provisioner.
Related Issues (20)
- CertificateArn error on executing ggp.sh HOT 9
- Add remote debugging support
- Update IDT support for IDT v3.0.1+
- Update to Greengrass v1.10.1 HOT 1
- Detect if Java handler exists
- add-device returns This object does not support toString() error HOT 2
- Duplicate localSecret error when adding existing lambda functions with same secret HOT 1
- [launch-lambda-stack-for-ggp] should not build a lambda with GG Core Binaries HOT 1
- [AwsGreengrassProvisionerLambda] Adding existing lambda HOT 1
- Errors in documentation for existingLambda.conf and existing Lambda env variable HOT 2
- Add support for Stream Manager
- Docker containers as a Greengrass device HOT 3
- Add support for provisioning Greengrass devices for DockerApplicationDeployment connectors
- function config to use Machine learning resource information
- Add variable substitution in topic names HOT 1
- Unreleased Resource: Streams HOT 1
- Add python3-devel.x86_64 for buliding python3 lambda HOT 1
- How can I deploy greengrass lambda and group with another user ID/group ID lambda runtime environment ? HOT 4
- Add support for adding/removing connectors with the Update group command-line options
- Can't update existing lambda function because of lambda update status 'in progess' HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from aws-greengrass-provisioner.