How to Get Account Number from AWS Lambda
Learn Software Engineering @ao.gl
by Andrew
1y ago
If you need to get the current Account Number, or Account ID from within a Lambda execution, then you can access invoked_function_arn from the context and return the associated value as follows: The post How to Get Account Number from AWS Lambda appeared first on Software Engineering Authority ..read more
Visit website
Summary of the Frequently Used AWS STS API calls
Learn Software Engineering @ao.gl
by Andrew
1y ago
AssumeRole –  is useful for allowing existing IAM users to access AWS resources that they don’t already have access to. For example, the user might need access to resources in another AWS account. It is also useful as a means to temporarily gain privileged access—for example, to provide multi-factor authentication (MFA). You must call this API… Read More »Summary of the Frequently Used AWS STS API calls The post Summary of the Frequently Used AWS STS API calls appeared first on Software Engineering Authority ..read more
Visit website
Understanding Locking and Conditional Writes in AWS DynamoDB
Learn Software Engineering @ao.gl
by Andrew
1y ago
Optimistic locking is a strategy to ensure that the client-side item that you are updating (or deleting) is the same as the item in DynamoDB. Optimistic concurrency depends on checking a value upon save to ensure that it has not changed. If you use this strategy, then your database writes are protected from being overwritten by… Read More »Understanding Locking and Conditional Writes in AWS DynamoDB The post Understanding Locking and Conditional Writes in AWS DynamoDB appeared first on Software Engineering Authority ..read more
Visit website
AWS CodeDeploy Deployment Type Options
Learn Software Engineering @ao.gl
by Andrew
1y ago
CodeDeploy provides two (2) deployment type options: Option 1 – In-place Deployment In-place deployment: The application on each instance in the deployment group is stopped, the latest application revision is installed, and the new version of the application is started and validated. You can use a load balancer so that each instance is deregistered during… Read More »AWS CodeDeploy Deployment Type Options The post AWS CodeDeploy Deployment Type Options appeared first on Software Engineering Authority ..read more
Visit website
Defining Amazon ECS Task Placement Strategies
Learn Software Engineering @ao.gl
by Andrew
1y ago
Amazon ECS supports the following task placement strategies: binpack – Place tasks based on the least available amount of CPU or memory. This minimizes the number of instances in use. random – Place tasks randomly. spread – Place tasks evenly based on the specified value. Accepted values are attribute key-value pairs, instanceId, or host. The post Defining Amazon ECS Task Placement Strategies appeared first on Software Engineering Authority ..read more
Visit website
Deployment methods in AWS Elastic Beanstalk
Learn Software Engineering @ao.gl
by Andrew
1y ago
– All at once – Deploy the new version to all instances simultaneously. All instances in your environment are out of service for a short time while the deployment occurs. – Rolling – Deploy the new version in batches. Each batch is taken out of service during the deployment phase, reducing your environment’s capacity by the number… Read More »Deployment methods in AWS Elastic Beanstalk The post Deployment methods in AWS Elastic Beanstalk appeared first on Software Engineering Authority ..read more
Visit website
How to update NTP to sync clock on Linux
Learn Software Engineering @ao.gl
by Andrew
1y ago
If you need to sync the clock on Linux using the central NTP clock service, you can do the following: The -gg flags do the following: The post How to update NTP to sync clock on Linux appeared first on Software Engineering Authority ..read more
Visit website
How to Find IP Address Ranges used by Amazon S3
Learn Software Engineering @ao.gl
by Andrew
1y ago
You can query the ip-ranges Amazon AWS URL, and parse the results through jq as follows: Generic S3 IP Ranges Query: Response: Region Specific S3 IP Ranges Query: Response: The post How to Find IP Address Ranges used by Amazon S3 appeared first on Software Engineering Authority ..read more
Visit website
How to Find the nth Reverse Number in Java
Learn Software Engineering @ao.gl
by Andrew
1y ago
The challenge Reverse Number is a number which is the same when reversed. For example, the first 20 Reverse Numbers are: Task You need to return the nth reverse number. (Assume that reverse numbers start from 0 as shown in the example.) Notes 1 < n <= 100000000000 The solution in Java Option 1: Test… Read More »How to Find the nth Reverse Number in Java The post How to Find the nth Reverse Number in Java appeared first on Software Engineering Authority ..read more
Visit website
How to Find the Sum of Intervals in Java
Learn Software Engineering @ao.gl
by Andrew
1y ago
The challenge Write a function called sumIntervals/sum_intervals() that accepts an array of intervals, and returns the sum of all the interval lengths. Overlapping intervals should only be counted once. Intervals Intervals are represented by a pair of integers in the form of an array. The first value of the interval will always be less than the second… Read More »How to Find the Sum of Intervals in Java The post How to Find the Sum of Intervals in Java appeared first on Software Engineering Authority ..read more
Visit website

Follow Learn Software Engineering @ao.gl on FeedSpot

Continue with Google
Continue with Apple
OR