Comments (4)
deployment.default.conf's uid/gid should do it but I'll test it out right now.
from aws-greengrass-provisioner.
Oops, I meant function.default.conf. The top level uid
and gid
values are what you are looking for I believe.
I updated the bare function.default.conf to look like this:
conf {
encodingType = Json
connectedShadows = []
localDeviceResources = []
localVolumeResources = []
localS3Resources = []
localSageMakerResources = []
localSecretsManagerResources = []
accessSysFs = false
memorySizeInKb = 32768
greengrassContainer = true
environmentVariables = {
GROUP_ID = ${GROUP_ID}
AWS_IOT_THING_NAME = ${AWS_IOT_THING_NAME}
AWS_IOT_THING_ARN = ${AWS_IOT_THING_ARN}
AWS_GREENGRASS_GROUP_NAME = ${AWS_GREENGRASS_GROUP_NAME}
}
uid = 1000
gid = 1000
javaJsonHandler = "handleJsonRequest"
javaBinaryHandler = "handleBinaryRequest"
}
And the corresponding Hello World function looked like this in my process list:
ubuntu 13900 0.3 1.9 215036 18672 ? Ssl 17:15 0:00 python3.7 -u /runtime/python/lambda_runtime.py --handler=HelloWorldPython3.function_handler
In this case user ubuntu is uid/gid 1000.
Going back to the default file makes this process run as ggc_user
which is uid 111 on my system.
ggc_user 13938 0.8 1.9 215036 18640 ? Ssl 17:18 0:00 python3.7 -u /runtime/python/lambda_runtime.py --handler=HelloWorldPython3.function_handler
from aws-greengrass-provisioner.
@kimsehwan96 is that what you're looking for?
from aws-greengrass-provisioner.
Closing for now but please re-open the ticket if this isn't what you needed. Thanks!
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
- 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.