AWS Lambda | AWS Lambda functions in Java Flashcards

1
Q

Can Lambda functions in a VPC also be able to access the internet and AWS Service endpoints?

AWS Lambda functions in Java

AWS Lambda | Compute

A

Lambda functions configured to access resources in a particular VPC will not have access to the internet as a default configuration. If you need access to external endpoints, you will need to create a NAT in your VPC to forward this traffic and configure your security group to allow this outbound traffic.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

How do I compile my AWS Lambda function Java code?

AWS Lambda functions in Java

AWS Lambda | Compute

A

You can use standard tools like Maven or Gradle to compile your Lambda function. Your build process should mimic the same build process you would use to compile any Java code that depends on the AWS SDK. Run your Java compiler tool on your source files and include the AWS SDK 1.9 or later with transitive dependencies on your classpath. For more details, see our documentation.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly