Questions tagged with Developer Tools
Content language: English
Sort by most recent
How to install packages in lambda running linux machine
I have a lambda service which tries to call a WCF service. But I can't directly invoke the service as there is virtual IP set in between. So my lambda needs to call the virtual IP from there the call is redirected to the specified WCF service. While trying to make the call, I got below exception from the service. "GSSAPI operation failed with error - An unsupported mechanism was requested. NTLM authentication requires the GSSAPI plugin 'gss-ntlmssp" I searched for a solution and most of them says need to install GSSAPI plugin in the linux machine that runs the lambda service. I don't know how and where I can do that. I am new to this. Looking forward to all the supporters.
Multipart upload process verification
I'm using windows 10 with all the latest fixes and I have wireshark installed, too. How can I verify that my AWS upload to my S3 bucket is using 6 processes like I told it to use in the config. I'm not that familiar with wireshark and tasklist doesn't help me either. I have my upload script coded in Python using boto3.
Pluralsight- adding cidr range to vpc
Im getting an error when trying to input this command. I'm following along on Pluralsight and it looks like its supposed to be straight forward but...well....take a look: PS C:\Users\kooko\Downloads\advanced-networking-on-aws-master\advanced-networking-on-aws-master\m3> vpc_id=$(aws ec2 describe-vpcs --filters Name="tag:Name",Values="globo-primary" \>> >> --query 'Vpcs.VpcId' --output text) vpc_id=$(aws ec2 describe-vpcs --filters Name="tag:Name",Values="globo-primary" \ --query 'Vpcs.VpcId' --output text) : The term 'vpc_id=$(aws ec2 describe-vpcs --filters Name="tag:Name",Values="globo-primary" \ --query 'Vpcs.VpcId' --output text)' is not recognized as the name of a cmdlet, function, script file, or operable program. Check the spelling of the name, or if a path was included, verify that the path is correct and try again. At line:1 char:1 + vpc_id=$(aws ec2 describe-vpcs --filters Name="tag:Name",Values="glob ... + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + CategoryInfo : ObjectNotFound: (vpc_id=$(aws ec... --output text):String) , CommandNotFoundException + FullyQualifiedErrorId : CommandNotFoundException
how to tag an existing autoscaling group using boto3
I'm trying to tag an existing autoscaling group, using Python and Boto3. I can definitely describe the ASGs by name: ``` import boto3 asg_client = boto3.client("autoscaling") asg_name = "foo-bar20220502044025104700000001" response = asg_client.describe_auto_scaling_groups(AutoScalingGroupNames=[asg_name]) ``` The problem I have with the `create_or_update_tags()` and `delete_tags()` methods is that they don't seem to accept a list of ASG names. E.g. this doesn't work: ``` asg_client.create_or_update_tags( AutoScalingGroupNames=[asg_name], Tags=[my_tag] ) ``` To make it clear: - the ASG already exists, I am not creating it here - I do not want to make any other changes to the ASG - all I want is be able to tag an ASG if I know its name - I need to use boto3 from Python for this The tag-related methods appear to be different from all the other ASG client methods in that they do not accept an ASG name, or list of names, as a parameter.
API Governance and Audit Compliance Workflow
Hi AWS, I want to build a workflow for API related Audit issues and governance and in which order the mentioned points will be arranged: 1. Centralize ownership 2. Open banking update external onboarding monitoring 3. Flows templates diagrams 4. Update all APIs, ensure patterns are up to date 5. API integrations standards 6. Update and enhance practical establish process to monitor 7. Implement standards and compliance 8. Approval mechanisms 9. Enhancements Components 10. Not included Remediation no 11. Reference Artifacts 12. Who will review 13. Who will approve 14. Identify the impacted applications 15. Where is the integration standards 16. Reviewing them Thanks
Given a service name from SDK/API, where could I get the user friendly title and/or description?
While working across multiple AWS accounts that leverage different AWS Services, I can pull those services using the SDK/API's but get lists like: * acm * dax * ecr * ecs * kms However the consumers of this data are not AWS experts - Is there a consistent way to get the user-friendly title and/or description for any given service using the identifiers from the SDK/API's? (even a website that can pass a param of the value to get the title and/or description would be a possible workaround) Thanks!
Lambda function failing with "cannot import name 'etree' from 'lxml' (/var/task/lxml/__init__.py)"
I'm creating a lambda function using a virtual env in Windows 10. I'm adding site-packages to a .zip archive and updating the lambda function. Currently this is failing with "cannot import name 'etree' from 'lxml' (/var/task/lxml/__init__.py)" My venv is using Python 3.8 as is the runtime environment in lambda. Some [previous solutions](https://stackoverflow.com/questions/53406638/importerror-cannot-import-name-etree-on-python-3-6) suggest setting runtime on lambda to Python 3.6 but this is no longer an option. I've tried 3.7 and 3.9 but the problem persists. Other solutions on [re:Post](https://repost.aws/questions/QUwIZg6DlXTgKHjJyMIlG1dQ) discuss docker containers rather than zip archives and linux environments rather than windows.
Why AWS Lambda function with Pytorch takes additional 10 seconds than sam local invoke
Hello, I am new to AWS Lambda, I created a Pytorch Lambda function using SAM with architecture x86_64. When invoking the same function with SAM local invoke, the total billable seconds is around 7 seconds, but after "sam deploy --guided" I invoked lambda function + API gateway using Python request module with the exact same setting as sam local invoke (Memory = 3 GB). Then the total billable seconds is around 17 seconds. I just did not understand why there is 10 seconds increase in time.
my "token-signature" in aws iot test-invoke-authorizer always mismatch
I had try to use AWS IoT Core Authorizer with AWS Lamda Function follow this guide. https://docs.aws.amazon.com/iot/latest/developerguide/config-custom-auth.html and this https://docs.aws.amazon.com/iot/latest/developerguide/custom-auth-tutorial.html I can create Lamda Function and Authorizer like that guide. But I had always got this Error : "An error occurred (InvalidRequestException) when calling the TestInvokeAuthorizer operation: Token signature mismatch for authorizer my-new-authorizer1" when I try to test it by test-invoke-authorizer. I guess I maybe do some mistake on key-generate or signature-generate by OpenSSL. So I try to validate them for check the compatible of them and It's compatible. And now, I have no idea what I do mistake. Does anyone suggest me what should I do Thank You for your time.
Custom resource type-configuration under `sam local start-lambda`?
Is there a way to supply `type-configuration` data to a CloudFormation custom resource running locally via `sam local-start-lambda`? I'm trying to integration test my custom resource before pushing it to CloudFormation however the resource depends on configuration data. Thanks.