Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Using kinesis service throws I am error in ECS fargate task have openresty installed #33

Open
vkatoch2000 opened this issue Jan 5, 2024 · 1 comment

Comments

@vkatoch2000
Copy link

Problem :
while trying to use lua custom lua module to send data to kinesis , we are getting some error

Error Trace:

{"error":"...esty/luajit/share/lua/5.1/api-gateway/aws/AwsService.lua:202: attempt to concatenate field 'aws_access_key' (a nil value)"}

Code snippet :
function _M.send(region, role, data, stream_name)
local service = KinesisService:new({
aws_region = region,
aws_credentials = {
provider = "api-gateway.aws.AWSIAMCredentials",
shared_cache_dict = "shared_iam_dict",
security_credentials_host = "169.254.170.2",
security_credentials_url= os.getenv("AWS_CONTAINER_CREDENTIALS_RELATIVE_URI")
}
})
local response = service:putRecord(stream_name, data, "partition-id")
return response
end

it seems api is not able to get security IAM credentails

Can you please let me know , what went wrong , any help will be appreciated?

env is set in AWS_CONTAINER_CREDENTIALS_RELATIVE_URI in nginx.conf
env AWS_CONTAINER_CREDENTIALS_RELATIVE_URI;

@vkatoch2000 vkatoch2000 changed the title Using kinesis service throws I am error in ECS task have openresty installed Using kinesis service throws I am error in ECS fargate task have openresty installed Jan 5, 2024
@vkatoch2000
Copy link
Author

vkatoch2000 commented Jan 8, 2024

is code still maintained @ddragosd ??

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant