Question: Converting selected ec2 on-demand instance to reserved of same type

I have 3 ec2 instances of same type(eg. m5.xlarge). I want to selectively convert 1 out of the 3 ec2 on demand instances to reserved instance. How do I achieve this?FollowComment

Answer: "0Coverage for reserved instances varies depending on the method of purchase.For example, if all three EC2 servers are located in different availability zones and you purchase zone-reserved instances, you can apply them to only one of them.For region-reserved instances, all EC2s that match the criteria are eligible.https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/reserved-instances-scope.htmlhttps://docs.aws.amazon.com/AWSEC2/latest/UserGuide/reserved-instances-types.htmlIf this answer leads to a resolution, please approve the answer for the betterment of the community.CommentShareEXPERTRiku_Kobayashianswered 2 months ago0That's not exactly how Reserved Instances work. You can't "convert" your on-demand instance into reserved.Reserved Instances are a billing construct. It's a commitment to use certain types of resources continuously on an hourly basis for a whole term (i.e. 12 months or 36 months). The discount you get from your RIs depends on multiple factors, some of which are attributes of your RI provided that it is being utilized by your running instances.When you made a commitment (purchase RI) - the discount can go to ANY of your running EC2 instances that match the attributes of your purchased RI. The discount will apply automatically as long as there is matching usage. SO, instead of paying on-demand fee, your running EC2 instance will be charged $0 during the hours when they will be covered by RIs, and you will only end up paying for your RI commitment term.You cannot specify to which running instance you want your RI discount to apply. Since RIs are a billing mechanism - the discount will simply apply to matching usage. And the discount may be applying to a different instance (out of your three same instances) during different hour. The discount mechanism works in such a way to ensure you get all the benefit. Imagince if you stop or terminate one of the instances - then the discount will automatically rollover to the next matching instance.CommentShareEXPERTNataliya_Ganswered 2 months ago"


Question: Fargate: how to stop task after finishing

"Hello. I need to calculate the PDF task on my Fargate cluster and after finishing calculating the task should be stopped or terminated to decrease payments.The consequence of my actions:Little task always running on EC2 Cluster and check DB to the new data.If new data appears, using Boto3, run the Fargate container (big task to calculate PDF).After the job is done, the task should be stopped.Also if in the DB appears the second row of data during proceeding the first task, Fargate should create a second task for the second job. and then stop tasks...So, I have:PDF task written on Python and deployed on ECRFargate clusterTask definition (describe Memory, CPU's and container)What is my next step? How task know, that it should be closed?Any idea or solution?FollowComment"

Answer: "2Accepted AnswerAn ECS task (regardless of whether it's using EC2 or Fargate) exits when an essential container in the task stops or the process that gets started as part of the container entry point exits. The latter typically means that when your application stops, the task stops. Based on your description, if you are launching a new task to do the desired calculation, just have your code exit after completing the calculation.CommentShareMatsanswered a year ago"


Question: The Quotation mark of ' in AWS cognito in warning is working.

The warning was you don't have sufficient permission for this operation. Please contact the administrator. but it was rendered as you don't have sufficient permission for this operation. Please contact the administrator. I think the Quotation mark for that warning and it should be ’ instead of &apos.I am in Mumbai server if it helps!FollowComment


Question: EBUS_EVENT_ID_RESULT on System Entity results are null

"I'm using my SQLite gem that I have made and have an ebus function that returns a database connection but it seems that when running it in editor mode it doesn't even get called.SQLite3::SQLiteDB * sysDb = nullptr;EBUS_EVENT_ID_RESULT(sysDb, AZ::EntityId(0), SQLite::SQLiteRequestBus, GetConnection);AZ_Assert(sysDb, "sysDb is null.");Tried in both ESYSTEM_EVENT_EDITOR_ON_INIT and ESYSTEM_EVENT_GAME_POST_INIT_DONE using the OnSystemEvent function for a game gem but in both events it doesn't work.It works fine if i just run it straight from the launcher project.EDIT:Altered my code so that requesting the system entity's database and working on it is in a console command and it's doing the same thing even after the entire editor is loaded and running. This is a wierd issue...Follow"

Answer: "0Accepted AnswerFixed it. And by god was it a stupid fix.Looking at both the Editor.xml and Game.xml in the config folder was where the problem resides.There's two sections:The first one is:<Class name="AZ::Entity" type="{75651658-8663-478D-9090-2432DFCAFA44}" version="2" specializationTypeId="{75651658-8663-478D-9090-2432DFCAFA44}">which has an EntityId class and an id of 0, which is the system entity.The second one is:<Class name="ModuleEntity" type="{C5950488-35E0-4B55-B664-29A691A6482F}" specializationTypeId="{C5950488-35E0-4B55-B664-29A691A6482F}"><Class name="AZ::Entity" field="BaseClass1" type="{75651658-8663-478D-9090-2432DFCAFA44}" version="2" specializationTypeId="{75651658-8663-478D-9090-2432DFCAFA44}">which has an EntityId class and a custom id that is defined within the system entity editor.Now here's what went wrong. It could be how i've coded my SQLite gem or it could be the system entity editor, i dont know. But what i do know is that it was placing the SQLiteSystemComponent in the ModuleEntity class's list of components instead of the System Entity class's components.So with a little editing:    <Class name="AZ::Entity" type="{75651658-8663-478D-9090-2432DFCAFA44}" version="2" specializationTypeId="{75651658-8663-478D-9090-2432DFCAFA44}"><Class name="EntityId" field="Id" type="{6383F1D3-BB27-4E6B-A49A-6409B2059EAA}" version="1" specializationTypeId="{6383F1D3-BB27-4E6B-A49A-6409B2059EAA}"><Class name="AZ::u64" field="id" type="{D6597933-47CD-4FC8-B911-63F3E2B0993A}" value="0" specializationTypeId="{D6597933-47CD-4FC8-B911-63F3E2B0993A}"/></Class><Class name="AZStd::string" field="Name" type="{EF8FF807-DDEE-4EB0-B678-4CA3A2C490A4}" value="SystemEntity" specializationTypeId="{03AAAB3F-5C47-5A66-9EBC-D5FA4DB353C9}"/><Class name="bool" field="IsDependencyReady" type="{A0CA880C-AFE4-43CB-926C-59AC48496112}" value="false" specializationTypeId="{A0CA880C-AFE4-43CB-926C-59AC48496112}"/><Class name="bool" field="IsRuntimeActive" type="{A0CA880C-AFE4-43CB-926C-59AC48496112}" value="true" specializationTypeId="{A0CA880C-AFE4-43CB-926C-59AC48496112}"/><Class name="AZStd::vector" field="Components" type="{2BADE35A-6F1B-4698-B2BC-3373D010020C}" specializationTypeId="{0D23B755-6E8F-5C6C-B7C9-A352A55DC1DF}"><Class name="SQLiteSystemComponent" field="element" type="{0758FD42-2B80-44E9-A0F9-0DDECC7B99B7}" version="1" specializationTypeId="{0758FD42-2B80-44E9-A0F9-0DDECC7B99B7}"><Class name="AZ::Component" field="BaseClass1" type="{EDFCB2CF-F75D-43BE-B26B-F35821B29247}" specializationTypeId="{EDFCB2CF-F75D-43BE-B26B-F35821B29247}"><Class name="AZ::u64" field="Id" type="{D6597933-47CD-4FC8-B911-63F3E2B0993A}" value="11376276723666062785" specializationTypeId="{D6597933-47CD-4FC8-B911-63F3E2B0993A}"/></Class><Class name="AZStd::string" field="dbPath" type="{EF8FF807-DDEE-4EB0-B678-4CA3A2C490A4}" value=":memory:" specializationTypeId="{03AAAB3F-5C47-5A66-9EBC-D5FA4DB353C9}"/><Class name="int" field="OpenType" type="{72039442-EB38-4D42-A1AD-CB68F7E0EEF6}" value="0" specializationTypeId="{72039442-EB38-4D42-A1AD-CB68F7E0EEF6}"/><Class name="int" field="Openv2_flags" type="{72039442-EB38-4D42-A1AD-CB68F7E0EEF6}" value="0" specializationTypeId="{72039442-EB38-4D42-A1AD-CB68F7E0EEF6}"/><Class name="AZStd::string" field="Openv2_zvfs" type="{EF8FF807-DDEE-4EB0-B678-4CA3A2C490A4}" value="" specializationTypeId="{03AAAB3F-5C47-5A66-9EBC-D5FA4DB353C9}"/></Class></Class></Class>Boom! it worked!SharerePost-User-8564951answered 6 years ago0Ah, weird indeed — let me check in with the team about this. Will update this thread with answers as soon as we can :)SharerePost-User-5738838answered 6 years ago0Looks like debug game is doing it too now.SharerePost-User-8564951answered 6 years ago0Don't know if this is a part of it but the system entity editor crashes every time i try to switch from game to editor configuration.Here's the crash dump of it: 5686-af22d2b9-62a3-4080-b734-6a5168042b11.zip|attachment (132 KB)af22d2b9-62a3-4080-b734-6a5168042b11.zipEDIT:Things are wierd with the system entity editor.Tried to "reset" the settings by deleting the Editor.xml and Game.xml but that just caused it to immediately crash. Tried copying those files from another game but that just had extra or wrong stuff. Edited the files to "reset" them but that just gave me no components and no prompt that said it would automatically add missing components. On top of that going from gane to editor then back to game configuration caused it to crash.Here's the crash dump: 5687-f7f557b5-09bd-4fd5-ae3e-2366b0a3943a.zip|attachment (117 KB)f7f557b5-09bd-4fd5-ae3e-2366b0a3943a.zipEDIT2:Ok, so, "deleted" Editor.xml and Game.xml and created empty files (because enabling/disabling gems caused "Read-Only" error), and I was able to "recreate" those files but I still get no prompt to add missing components.SharerePost-User-8564951answered 6 years ago0Nice!! Sorry for the delayed reactions -- I'm glad you got this fixed. Keep on rockin! :DSharerePost-User-5738838answered 6 years ago"


Question: Issue importing custom Python modules in Jupyter notebooks with SparkMagic and AWS Glue endpoint

"I'm encountering an issue while attempting to run ETL scripts in Jupyter notebooks using SparkMagic, which is connected to an AWS Glue endpoint via SSH. I followed the tutorial provided in the AWS Glue documentation (link: https://docs.aws.amazon.com/glue/latest/dg/dev-endpoint-tutorial-local-jupyter.html) and successfully set up the connection. I can run Pyspark without any problems.However, I'm facing difficulties when trying to import custom Python modules that I created. I have ensured that I uploaded my files to the Glue endpoint and placed them in a file directory that I appended to the Jupyter notebook's search path. When attempting to import the module using the following code:from test.base.text import DataFieldsIt fails to import because the Python interpreter is set to use /usr/bin/python3 by default. Instead, I need to use the **/usr/bin/gluepython3 **interpreter.sys.executablereturns/usr/bin/python3I have tried several steps to make it use the correct Python interpreter, including:Configuring sparkmagic to use gluepython3:%%configure -f {  "conf": {      "spark.pyspark.python": "/usr/bin/gluepython3"  } }Setting the PYSPARK_PYTHON environment variable in the notebook:alias python="/usr/bin/gluepython3"Modifying the .bashrc file on the Glue endpoint and creating an alias for Python to point to gluepython3:alias python="/usr/bin/gluepython3"Despite trying these approaches, I have only been able to successfully import the module when running the code outside of Jupyter notebook using an SSH shell and manually invoking the Python file on the endpoint:/usr/bin/gluepython3 /location/to/file.pyAny suggestions or guidance on how to resolve this issue and make the custom module import work within Jupyter notebooks using SparkMagic and the AWS Glue endpoint would be greatly appreciated.Thank you in advance!FollowComment"

Answer: "1To Add to the question above , I would recommend that you move to Glue Interactive Sessions.Dev end-points are no more developed and do support only Glue version 1.Switching to Interactive sessions, you can dynamically choose the Glue version (2,3 or 4) and hence spark version. Furthermore it highly simplify the way you can add additional python modules by using a magicsCommentShareEXPERTFabrizio@AWSanswered 19 days ago0According to my understanding, you are including the custom module by uploading to the local directory structure of your Glue Dev endpoint using SSH and trying to link them. However, according to the documentation, the way you import custom python modules that you use for your development endpoint is by adding them as a dependency S3 path at the time of creation of the development endpoint.Python library path    Comma-separated Amazon Simple Storage Service (Amazon S3) paths to Python libraries that are required by your script. Multiple values must be complete paths separated by a comma (,). Only individual files are supported, not a directory path.In order to use your custom libraries, generate a .whl file of your custom module and upload to an S3 path and use it as a parameter with "Python library path" in dev endpoint.For more information on how you can create a .whl file refer Python Official documentation or use the following pip command in the directory of the python package with the latest pip and wheel:pip wheel .If this still doesn't resolve the issue, I would recommend trying out different options like Glue Interactive Sessions/NotebooksUnlike AWS Glue development endpoints, AWS Glue interactive sessions are serverless with no infrastructure to manage. You can start interactive sessions very quickly. Interactive sessions have a 1-minute billing minimum with cost-control features. This reduces the cost of developing data preparation applications.CommentShareShrivathsa_Panswered 19 days agoEXPERTFabrizio@AWSreviewed 19 days ago"


Question: adding ec2 volume to instance with powershell

"I got following script to add a new volume to instanceID. However I am unsure how to get the volume ID after volume creation. Also the DeviceID what should it be?Param (    [string][Parameter(Mandatory) = $True] $InstanceId    [string][Parameter(Mandatory = $True)] $driveletter,    [int][Parameter(Mandatory = $True)] $size,    [string][Parameter(Mandatory) = $True)] $az,    [string][Parameter(Mandatory = $True)] $Region,    [string][Parameter(Mandatory) = $True] $volumetype    New-ec2volume -AvailabilityZone $az -VolumeType $volumetype -size $size -Region $RegionAdd-EC2Volume -InstanceId $InstanceId )FollowComment"

Answer: "0Hi ThereTo get the VolumeId use$volume = New-ec2volume -AvailabilityZone $az -VolumeType $volumetype -size $size -Region $RegionAdd-EC2Volume -InstanceId $InstanceId -VolumeID = $volume.IdFor determining the  DeviceId for a Windows EC2 instance, see this article: https://docs.aws.amazon.com/AWSEC2/latest/WindowsGuide/device_naming.htmlFor Linux instances, seehttps://docs.aws.amazon.com/AWSEC2/latest/UserGuide/device_naming.htmlCommentShareEXPERTMatt-Banswered 7 months ago0Thank you. Is there a write-progrss indicator i can add or new-ec2volume. I noticed I had to do a start-sleep 5 before I can add the ec2volume otherwise i cannot see the volumeidCommentSharedragoanswered 7 months ago0Check the below link for the script on how to create and attach EBS volume to EC2 instanceCreate and attach EBS volume to already running EC2 instance with powershellCommentShareMayankanswered 7 months ago"


Question: Using the 'time' field in PutEventsRequestEntry to schedule events

"I'm currently using another cloud provider to provide a service bus with flexible scheduling of messages because of the 15 minute maximum delay on SQS messages. I'm wondering if I can use EventBridge for my use case, so a couple of questions:Are there any restrictions on the 'time' field in PutEventsRequestEntry (https://docs.aws.amazon.com/eventbridge/latest/APIReference/API_PutEventsRequestEntry.html)? Eg. is a timestamp in an hour supported? A timestamp next week? Next year?Is there any way to view/manage/cancel events that have been submitted using PutEvents (https://docs.aws.amazon.com/eventbridge/latest/APIReference/API_PutEvents.html)? The most important is cancelling - if I send an event using PutEvents with a future time, is there anything I can use to later cancel that event from firing? Is there a way to view all events that have been scheduled in an event bus for a future time?It'd be great to not have the complexity of using another cloud provider for this part of our app, and EventBridge looks like the closest thing AWS might have to the same service. Is this sort of use case supported?Thanks!CallumFollowComment"

Answer: "1Thanks for your question!Unfortunately the time field in PutEventsRequestEntry is not used for event scheduling, and does not affect when the event will be delivered to either the event bus, or the Target of any Rule you have created on that event bus. It is there, as part of a standardized set of metadata for event producers to use to describe events.The delay feature is an interesting one. Could you tell us more about your use case to help us understand how we can best consider addressing it in our roadmap?In general, if you are interested in scheduling messages in the future, one way to do that in AWS is to use the Scheduled Events: https://docs.aws.amazon.com/lambda/latest/dg/with-scheduled-events.htmlUsing this feature, you can configure a Lambda function to be executed in the future, or on a recurring schedule. That Lambda function could in turn put messages on an SQS queue or PutEvents onto an Amazon EventBridge event bus.Currently, there is no way to manage events that have been submitted using PutEvents. However, as events are only processed if a Rule is created for the event bus, with a target, one option available for "cancelling" events is to temporarily disable the rule handling them. But I don't think that's what you had in mind, given that the context of the question was about scheduling events in the future.CommentShareNikPinski-AWSEventBridgeanswered 4 years ago0Hey, thanks for your reply! :)My use case is essentially for scheduling API calls against our app that admins would otherwise have to make manually. We run surveys, so when a survey is created we can schedule the API calls to launch/close/publish etc. - these events are generally a few days from when we're scheduling them.Currently we use Azure's service bus, which lets us (using their AMQP API) submit a task with an arbitrary timestamp at which it'll appear. This API returns a cancellation token that we can save in our database and use to cancel the task so it won't run, if we need to. In the same way as AWS SQS -> Lambda triggers, their service bus can trigger their equivalent of a Lambda, which can then make the appropriate API request described by the queued task.In an ideal world we'd bring this into AWS, but I'm not aware of any service in AWS that can schedule a Lambda to run with the given data at an arbitrary future time, and in such a way that we can cancel it any time before then. Could CloudWatch events that you linked to be used for this purpose?Thanks!CallumCommentShareCallumManswered 4 years ago0Answering my own question here, this can be done using AWS step functions - as long as the task is to run within the next year. We can use a 'delay until timestamp' step and then have the Lambda called (eg. by API or SQS) in the step after that.CommentShareCallumManswered 4 years ago"


Question: SES emails send from ECS containers not being delivered

"Within our account 183395143814, we are running 1 ECS service in Mumbai and 1 ECS service in Canada, both with the same container image. The service in Mumbai runs uses Fargate as the capacity provider, while the one in Canada uses EC2 as the capacity provider.Emails sent from the service in Mumbai get delivered to recipients correctly. However, emails sent from the service in Canada are not getting delivered. In both regions, the tasks and EC2 instances are configured to use IAM roles that allow sending emails via SES.SNS logging shows that emails get sent from the containers to SES and no error is received. There are no bounces, rejects or complaints.FollowComment"


Question: "Amazon Connect - For reports generated from saved templates, columns randomly show up in different order, have a different format, or have a leading space"

"We have a number of saved report templates and when we look at the generated csv files, there are a few problems.the columns change order randomlyin the csv some of the column headers (such as "agent idle time") have a leading spacethe field "Non-productive time" sometimes shows up as "Nonproductive time"FollowCommentdmacias a month agoI feel like I had this issue when I was using this feature. However, we've gone to a 3rd party vendor for reporting and never did anything about it.Share"

Answer: "0Follow the steps and let us know.Column order: The order of the columns in the report may be affected by changes made to the report template. Check to make sure that the report template has not been modified, and that the columns are in the correct order in the template. You can also try deleting and recreating the report template to see if that resolves the issue.Leading spaces: The leading space in some column headers may be caused by a formatting issue in the report template. Check the formatting of the column header in the template and make sure that there are no extra spaces before or after the text. You can also try renaming the column header in the template to remove any leading spaces.Different column names: The inconsistency in the field name "Non-productive time" versus "Nonproductive time" may be caused by a mismatch in the naming conventions used in the report template and the system. Check to see if there are any naming inconsistencies in the report template and try to standardize the naming conventions used.CommentSharehashanswered a month ago0Spaces in CSV is valid and should not be ignored in either column heading or valuehttps://www.ietf.org/rfc/rfc4180.txtHyphen should be valid but 3rd party app sometimes has a tough time importing them.  If you are seeing differences, try creating a NEW saved template to generate the CSV again.  Often enhancements requests is deployed but we do not want to affect existing saved reports so it will only affect new saved reports, but this also means column headings could change (currently not able to choose your own order).So dont re-save your current saved templates if you have other workload that depends on it, create new ones, make sure it works and then migrate it.  Once created, all outputs afterward should be consistentCommentShareClarenceChoianswered a month ago"


Question: Will s3 uri remain same when data is moved between storage layers for a spark workload?

My customer planning to use s3 for datalake and use spark to process the data. They want to use IA to move the data to glacier. When spark queries using s3 uri they want more insight into will they be able to access the data when moved to s3 glacier from spark workload and what will be the performance impact in accessing the same data.FollowComment

Answer: "0Accepted AnswerS3 object's URI does not change when it gets moved between storage classes. As the object moves from Standard to other storage classes, the access latency will increase (milliseconds for Standard, Standard-IA, One-Zone IA and Intelligence Tiering, select minutes/hours for Glacier and select hours for Glacier Deep Archive). [1][1] - https://aws.amazon.com/s3/storage-classes/CommentShareEXPERTPrabhakar_Canswered 3 years ago"


Question: New user questions about re:Post

"I had two questions about re:Post.What kind of vetting is done in order to remove or update stale questions?Could re:Post be used to answer security questions such as best practices, IT Governance, or even specific use case questions?FollowComment"

Answer: "1Hi.What kind of vetting is done in order to remove or update stale questions?No vetting required for your own question.Could re:Post be used to answer security questions such as best practices, IT Governance, or even specific use case questions?Is possible.If the issue is dependent on your particular AWS account, etc., you'll need to contact her AWS support.CommentShareEXPERTiwasaanswered 6 months agorePost-User-8223637 6 months agoI meant more generally across re:Post as a whole. How does AWS ensure the quality of the content remains high? Thanks!Shareiwasa EXPERT6 months agoProblematic content can be flagged using the Flag feature. It is not disclosed how the deletion process will be carried out.Also, since EXPERT and Tier are points based on approved answers, they can be used as a certain level of reliability.In addition, there is also a mechanism for responses to be evaluated by a third party through the Vote function.Share"


Question: Lightsail wordpress website not working after doing changes in web config file

I executed few steps on the web config file. This has resulted in website going down.Now instance is running. But I am neither able to access website nor I am able to go to wordpress dashboard through the IP address.Please help me address this issue.FollowComment

Answer: "0Do you have any snpashot which was created prior to the config changed? If yes, you can create a new instance from that snapshotCommentShareAWS-User-2776000answered 3 months ago"


Question: How is SNS guaranteed to receive messages from event sources?

"I know that AWS SNS receive message from publisher, and send message to Consumer(subscriber).And SNS FAQ said SNS guarantee message delivered to subscribed endpoint.(SNS to Subscriber)Then, how are messages guaranteed to be received from publisher?(Publisher to SNS)FollowComment"

Answer: "0Accepted AnswerThere is no guarantee that the messages are received from the publisher. For this reason the Publish API is synchronous. The publisher calls the API and it should receive an Ack (200 OK) that the message was received. If it does not receive the Ack, it should retry. When SNS sends an Ack, it is a guarantee that the message was received.CommentShareEXPERTUrianswered a year ago"


Question: Mac ec2 instance is not allowed to upload files to s3 without using access key/private key

"We have Windows ec2 instances with roles and policies configured to allow access (read/write) to s3 bucket and the python code running in this instance is not providing access key and private key and it is working fine. The same approach applied for ec2 mac instances is not working. I'd like to know,  Is this supported on Mac instances?The error message from python code running in EC2 mac instance is: botocore.exceptions.ClientError: An error occurred (AccessDenied) when calling the PutObject operation: Access DeniedThe Policy action associated to the machine role is: "Action": "s3:*",FollowComment"

Answer: "0IAM roles can be used on Mac instances as well, since it is possible to connect with Session Manager using IAM roles.Can you run the following command to check IAM roles without setting access keys, etc.?aws sts get-caller-identityOr can I run the following command on EC2 to get the IAM roles from the metadata?TOKEN=`curl -X PUT "http://169.254.169.254/latest/api/token" -H "X-aws-ec2-metadata-token-ttl-seconds: 21600"` \&& curl -H "X-aws-ec2-metadata-token: $TOKEN" –v http://169.254.169.254/latest/meta-data/iam/security-credentials/https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/iam-roles-for-amazon-ec2.htmlIf you cannot access the metadata, access to the metadata may be disabled, so please enable it with the following AWS CLI command.aws ec2 modify-instance-metadata-options --instance-id i-xxxxxxx --http-endpoint enabledhttps://awscli.amazonaws.com/v2/documentation/api/latest/reference/ec2/modify-instance-metadata-options.htmlCommentShareEXPERTRiku_Kobayashianswered a month ago"


Question: "Lumberyard 10,000 poly limit"

"Our level designer is experienced and has Lumberyard all running, yet somehow he has hit a 10,000 poly limit, however others have not on the 14K model! That limit seems low, and while I have yet to hear from our C++/LUA programmer (with some CryEngine experience) on this matter, perhaps your team could shed some light on that error, and direct us towards the solution.Error Message1] [Engine] Phys proxy rejected due to triangle count limit, 13625 > 10000 (Objects/level 1 arena assets/fountains/brood/b_fountain_a.cgf) Objects/level 1 arena/assets/fountains/brood/b_fountain_a.cgf Object="b_fountain_a2" [Object: b_fountain_a2]Follow"

Answer: "0Accepted AnswerThanks for posting. I've created a ticket with the field techs to get you an answer for this issue.SharerePost-User-8353690answered 6 years ago0I'm the level designer as mentioned in the post. Just updating that I have solved the issue. You have to open the console, then open the console window by pressing the icon in the bottom left corner of the console. Then change the variable e_PhysProxyTriLimit which was set at only 10,000 by default for me.SharerePost-User-2888198answered 6 years ago0Please be aware that increasing this limit significantly will start to have impact on the time spent processing physics. This does seem quite a high number, I would suggest wherever you can you use physics proxies or at least the lower lods of the models for the physics interaction.SharerePost-User-5084441answered 6 years ago0Thank you for the suggestion. We are just prototyping for now but will definitely take advantage of that as we import more assets!SharerePost-User-2888198answered 6 years ago"


Question: SSL configuration

I need to import my cloudflare SSL and configure with my website which I hosted in S3 bucketFollowComment

Answer: "1That's not really how Cloudflare works you don't export their certificate. The best way to handle this would be to create a CloudFront distribution pointing to the S3 bucket and then point the DNS record in Cloudflare to the CNAME of the distribution.CommentShareEvananswered 5 months ago1Do you mean you're using S3 static website hosting?  That doesn't support SSL / HTTPS, only HTTP which means best practice to protect your website clients from man-in-the-middle attacks is to not use this hosting method.  As Evan said, best to use CloudFront with an S3 origin.CommentShareEXPERTskinsmananswered 5 months ago"


Question: How to define concurrency in SageMaker real-time inference

"Hi Team,Greetings!!Could you please confirm, how can we define concurrency in SageMaker real-time inference?This is how we define concurrency in SageMaker serverless inference.“ServerlessConfig”: {“MemorySizeInMB”: 4096,“MaxConcurrency”: 10,}Thanks,VinayakFollowComment"

Answer: "0Hi Vinayak,MaxConcurrency is a concept for Serverless Endpoints and not real-time Endpoints.In terms of a real-time Endpoint, the concurrency is defined by what ever client is making the requests to your Endpoint (InvokeEndpoint API). I.e Assuming your Model container can handle concurrent request, you define the concurrency by Invoking the Endpoint.CommentShareMarcanswered a year agoAWS-Raghu a year agoOne of the examples to maximize performance by tweaking the concurrent connections for TensorFlow can be found here(https://aws.amazon.com/blogs/machine-learning/maximize-tensorflow-performance-on-amazon-sagemaker-endpoints-for-real-time-inference/)Share"


Question: route53 and ELB latency

"Hello,I use an ALB on the front of my application (deployed on ECS). And I use route53 in order to set elb as an alias record. When I call my application url directly from ELB by his dns it take few ms but when I call my application url over route53 it take 10s!.I don't uderstand why?bellow show how is configured on route53 my recordmyapp.env-dev.aws.domain.comASimple-dev-ecs-alb-xxxx.eu-west-1.elb.amazonaws.com.If I call directly dev-ecs-alb-xxxx.eu-west-1.elb.amazonaws.com it work correctly but if I call myapp.env-dev.aws.domain.com it make 10s to give me a responseFollowComment"

Answer: "0It appears to me your "dev-ecs-alb-xxxx.eu-west-1.elb.amazonaws.com" is a regional endpoint, so when you call the application regionally which means your are close to your application endpoint, is low latency.Route 53 endpoint is a global endpoint (there are also some other services of AWS are global endpoints), so when you call "myapp.env-dev.aws.domain.co"  - it goes to the global endpoints whicy may take some ms.  That is my understanding.Please advise me if you have any other findings.CommentSharerePost-User-7136343answered 3 months ago"


Question: Lightsail static ip issue

"Dear All,can anyone please enlighten me why my lightsail worpress instance is not accessible after attach a static ip to it. I follow the manual for this simple step but can not make it work after the static ip is set. The website is simply not accessible with q static ip but it is working well with the dynamic ip. Help please!!!!!!FollowComment"

Answer: "0Hello,What exactly is the error/issue that you are getting here ?Is the DNS resolving your IP ? Please post the error for better insight.You need at least one instance running in Lightsail. Static IP addresses can only be attached to instances in the same Region.What are the rules that you have set in the Network tab of Lightsail ?CommentShareSUPPORT ENGINEERAWS-User-Chiraganswered 10 months ago"


Question: Security token problem while registering AWS DeepLens v1.0

"I'm trying to register my AWS DeepLens v1.0 but I'm failing at step 1 "Autorizations". As soon as I load the page, there's a red panel showing "The security token included in the request is invalid". And if I enter a name then click the "create roles" button, same thing.The browser JS console is showing "POST https://iam.amazonaws.com/ 403", so I suppose I could manually add some roles in my IAM user profile, but I'm new with AWS, and don't have any clue.Can someone help me ?FollowComment"

Answer: "0Accepted AnswerOk, I found out how to resolve my problem :go to the security credentials on your account page: Click on your name in the top right corner -> My security credentialsthen generate access keys over thereCommentShareJulienanswered a year agoRosacker a year agoHey,I'm running into same issue :(I've tried going through generating a new access key, and that doesn't seem to have resolved it.Happen to have any further details on what you did?ShareJulien a year agoI generated everything at the 4 steps under "Multi-Factor Authentication (MFA)" on the "security credentials" page : (maybe not the same names, i'm using the french version that I translate here)access keyscloudfront key pairsx.509 certificateaccount identifiersAlso I've these 4 roles in the "roles" page :AWSDeepLensGreengrassGroupRole Service AWS: greengrassAWSDeepLensGreengrassRole Service AWS: greengrassAWSDeepLensLambdaRole Service AWS: lambdaAWSDeepLensServiceRole Service AWS: deeplensI've progressed but I'm stuck in an "endless loop", which I think is mentionned here : https://docs.aws.amazon.com/deeplens/latest/dg/deeplens-manual-updates.htmlSo now I'm waiting for a micro-hdmi cable to get a direct access to my deeplens...Good luck !Share"


Question: DMS - Task stopped with a generic errror message

"Hi,I started a DMS task last week, and after letting it run for three days, I stopped adding new tables to the process, and when I tried to activate it again, I've received the message:Last Error Task 'PMZPTPTYYJZGJQLBZCBYC7GSUQMWC2RICPEY6DA' was suspended due to 6 successive unexpected failures Stop Reason FATAL_ERROR Error Level FATALLooking at the logs, I found this error message 6x consecutively:2022-02-14T13:57:39 [DATA_STRUCTURE  ]E:  SQLite general error. Code <19>, Message <UNIQUE constraint failed: events.identifier, events.eventType, events.detailMessage>. [1000505]  (at_sqlite.c:525)What does it mean? Which kind of actions should I take?FollowComment"

Answer: "0Thanks, D-Rao; in that case, we don't have any other error messages. The only one that I found out was the SQLite error message. And also, some tables are not loading correctly and didn't throw an error message either. Do you feel that someone can take a brief look at this?CommentShareAWS-User-3327529answered a year agoD-Rao a year agoAs I said, try enabling detailed debug logging on some of the components and see if you start seeing any errors in the logs.Share0You can ignore the SQL Lite error.And the FATAL error that you saw is pretty generic. Usually, there are more Errors or Warnings attached to it. I would say look for "E:" and "W:" and see if you find any other relevant errors or warnings.If you did not see any other errors or warnings, and If the task is stopping right away even now, I would advise you to enable Detailed Debug on the components (target_apply, target_load, source_capture, source_unload) which are logged right above this message and see if DMS captures anything more. Please note that detailed debug dumps a lot of logs so make sure the Replication Instance has free storage.CommentShareD-Raoanswered a year ago"


Question: Unable to import module 'main': No module named 'main'

"I had a lambda function linked to API Gateway. All was working very fine. Then, I've updated a file who was in the zip file of the lambda function. I've rebuilded my zip file and upload it. And now I got the error:[ERROR] Runtime.ImportModuleError: Unable to import module 'main': No module named 'main'Traceback (most recent call last):But I didn't change anything exept a code line inside a python which have no link with that error. I already checked the filename (main.py) and function name (lambda_handler) => main.lambda_handler, chmod, ...I have no clue. It's been hours that I can move on. I need helpFollowComment"

Answer: "0Accepted AnswerIn some cases the error is related to a bad configuration in the value of handler. The handler value in the lambda configuration must have the value of the file.method. If your file is called _main.py and your method is called handler then you should set the value of the lambda handler to the following value "_main.handler"CommentShareEric Perez Torresanswered a month agorePost-User-9117706 a month agoYes. That is exactly what I have. My file is called main.py and my function is called lambda_handler. In AWS, my function handler is main.lambda_handlerShare0Did you zip it the same way as the procedure here?https://repost.aws/knowledge-center/lambda-import-module-error-pythonCommentShareEXPERTRiku_Kobayashianswered a month agorePost-User-9117706 a month agoYes, I did exactly the same: '>zip -r packaged.zip package 'SharerePost-User-9117706 a month agopackaged.zip|_libraries [...]|_file.py|_main.pyShare0It's working now. I've rebuilt my project from scratch but I still don't know why it didn't worked earlierCommentSharerePost-User-9117706answered a month ago"


Question: How to find workaround for xml.value() function in babelfish?

"We encountered an xml issue during the poc of babelfish migration, how to rewrite a user define function based on 64-bit encryption that is very common in sql server.The following code you can find on many web siteCREATE FUNCTION [dbo].[FnBase64Encode](@src varchar(max))　　RETURNS VARCHAR(max)asbegin　　declare @bin varbinary(max)　　set @bin=Convert(varbinary(max), @src)　　return cast(N'' as xml).value('xs:base64Binary(xs:hexBinary(sql:variable("@bin")))', 'varchar(max)')endGOWe know that the current version of babelfish(1.2.1) does not support xml methods such as xml.node and xml.value, is there any solution or sample code for this case?FollowComment"

Answer: "0Accepted AnswerHi, @Colin Tang.As you understand, the XML feature of T-SQL is not supported in Babelfish 1.2.1 as of today.If you want to do XML operations like this, you need to connect to the Aurora PostgreSQL port and consider whether you can use PostgreSQL's XML Functions instead.https://docs.aws.amazon.com/AmazonRDS/latest/AuroraUserGuide/babelfish-compatibility.htmlhttps://www.postgresql.org/docs/current/functions-xml.htmlCommentShareEXPERTiwasaanswered a year ago"


Question: What is SageMaker Autopilot doing when in state "InProgress - AnalyzingData" ?

"Hi,I'm trying this nice SageMaker Autopilot demo https://github.com/awslabs/amazon-sagemaker-examples/blob/master/autopilot/autopilot_customer_churn_high_level_with_evaluation.ipynbAt the beginning of the job, the status is "InProgress - AnalyzingData" for several minutes. This is long enough that I'd like to know more about it: what is Autopilot doing when at that status?FollowComment"

Answer: 0Accepted AnswerThere are some metrics begin collected in this stage. To understanding what is doing is the same as what happens when you're using tensorflow autoML.  There's a deep explanation what is does in our Science page https://www.amazon.science/publications/amazon-sagemaker-autopilot-a-white-box-automl-solution-at-scaleCommentShareAWS-User-4173554answered 3 years ago


Question: How do I fix this error when SSHing into my EC2 instance?

"Hey!I'm pretty new to AWS and Linux, and I'm trying to learn, so please bear with me as I know this probably is a noob question.I'm trying to SSH into my Linux EC2 instance on my Windows pc using cmd, and this is the error I get:Load key "linuxmc.pem": Permission deniedec2_user@ec2-3-110-105-158.ap-south-1.compute.amazonaws.com: Permission denied (publickey,gssapi-keyex,gssapi-with-mic).Any ideas on how I could fix this? Sorry again if it's a dumb question, but I wasn't able to find the solution after a lot of googling.Thanks.FollowComment"

Answer: "4putty is a tool to connect linux instances from windows os. but at first you need to convert your key file for puttyfirst download putty and puttygen and then follow the previous link or the following to connect your linux instance by using puttyConvert the .pem key to a .ppk key:You need to convert the .pem key to a .ppk key format, as it is the preferred format for Windows. You can use a tool like PuTTYgen to do the conversion. Download PuTTYgen from the official PuTTY download page: https://www.chiark.greenend.org.uk/~sgtatham/putty/latest.htmlOnce you have PuTTYgen, follow these steps to convert the key:Open PuTTYgen.Click the "Load" button and select your .pem key file (linuxmc.pem).Once the key is loaded, click the "Save private key" button and save the file with a .ppk extension (for example, linuxmc.ppk).Set the correct permissions for the .ppk key file:By default, Windows doesn't have the same permission restrictions as Linux, so you usually don't need to change permissions for the .ppk file. However, if you encounter permission-related issues, you can try the following:Right-click the .ppk key file and click "Properties."Go to the "Security" tab.Ensure that only the current user has "Read" permissions and other users/groups have no access.3.SSH into the EC2 instance using PuTTY or Windows OpenSSH:For PuTTY:Download and install PuTTY from the official download page (same as the link mentioned above).Open PuTTY and enter the public DNS of your EC2 instance in the "Host Name (or IP address)" field.In the "Category" tree, navigate to Connection > SSH > Auth.Click the "Browse" button and select your .ppk key file (linuxmc.ppk).Go back to the "Session" category and click "Open" to start the SSH connection.For Windows OpenSSH (CMD or PowerShell):Make sure OpenSSH is installed on your Windows system (Windows 10 build 1809 and later have it built-in).Open a CMD or PowerShell window and run the following command:ssh -i path\to\linuxmc.ppk ec2-user@ec2-3-110-105-158.ap-south-1.compute.amazonaws.comReplace path\to\linuxmc.ppk with the actual path to the .ppk file.That should resolve the issue and allow you to SSH into your EC2 instance. If you still face issues, double-check the security group settings for your instance, ensuring that it allows incoming SSH traffic (port 22) from your IP address.CommentShareEXPERTsedat_salmananswered 2 months agoiTcxic 2 months agoThanks a lot, this worked!Sharesedat_salman EXPERT2 months agoyou are welcomeShare3Hello!If you are trying to connect to an EC2 Linux instance using Windows, you must use the PuTTy application [0]. Following the documentation provided, you will be able to load the SSH key into PuTTy and connect from there. If the instance is question is using a Windows AMI, then you can connect using RDP [1]. Please keep in mind port 3389 must be open for inbound access in the instances security group to connect via RDP. I hope this information helps, if there are any further questions feel free to reach back out![0] Connect to Instance Using Windowshttps://docs.aws.amazon.com/AWSEC2/latest/UserGuide/putty.html[1] Connect to Windows Instance Using RDPhttps://docs.aws.amazon.com/AWSEC2/latest/WindowsGuide/connecting_to_windows_instance.html#connect-rdpCommentSharedclen-AWSanswered 2 months agoiTcxic 2 months agoHiSorry for not mentioning it, but my instance is running Amazon Linux. Will PuTTy work with Linux? Again, sorry, I'm a total noobShare"


Question: Cost of Athena and glue

How much will it cost if I complete all the steps mentioned in this article? will I be charged for Athena as well as glue?https://aws.amazon.com/blogs/big-data/improve-amazon-athena-query-performance-using-aws-glue-data-catalog-partition-indexes/FollowComment

Answer: "2The cost of using Athena can be divided into three categories:the Athena cost for bytes scannedthe cost of items in the Glue Data Catalog and operations on themS3 storage and operations costsWith that in mind, this is what could happen if you follow the steps in the article:You will be charged for Athena if you run queries, the amount will depend on how much data those queries scan.You will be charged for the number of items create in the Glue Data Catalog for as long as they remain there. If you run queries you will be charged for the requests made from Athena to the catalog. The first 1 million catalog items and the first 1 million requests per month are free of charge.You will be charged for the data you store on S3, for as long as it remains there. If you run queries you will be charged for the S3 operations made from Athena. The first 5 GB stored on S3 is free, and the first 20,000 get operations and 2,000 list operations per month are free.If this is your only use for Athena, Glue, and S3 you may be within the free tier of S3 and Glue, but Athena does not have a free tier.CommentShareTheoanswered a year agoEXPERTFabrizio@AWSreviewed a year agoShantanu Oak a year agoHow do I add an index without using glue?Share0Hi ,you can check Amazon Athena pricing here , at 5$ per TB scanned if you look at the data scanned by the queries in the Blog post, you can imagine that being in the KB the cost will be minimal if any.As for AWS Glue pricing is here , checking the data catalog cost, you can easily see that the operations in the blog post would fall in the free tier.hope this helpsCommentShareEXPERTFabrizio@AWSanswered a year ago"


Question: Is it possible to connect MS Excel to Aurora?

"Hi,Well, as the subjects says...We have a older solution that we a planning to move to a serverless architecture with a AuroraDB as part of the backend.The old solution has some data administration that were managed by the administrator using a fairly advanced Excel sheet and that updated the appropriate tables in the old SQLserver DB.In the long run this administration will be rewritten as a web application but we had hoped that there is a possibility to keep using this Excel solution for the time being.I've tried to search the web for an answer and I can't find a post that says it is possible, nor one that says it's not possible...Since Aurora should be MySQL compatible would a MySQL driver for Excel work?Have someone tried to do something like this?Regards,JanneFollowComment"

Answer: "0Aurora MySQL looks like MySQL 5.6 or 5.7 (Serverless is currently 5.6 only) to an application, and you should just be able to point a MySQL application at an Aurora MySQL server without change.Excel has a 30-year history of connecting to multiple databases, indeed the industry standard ODBC (Open DataBase Connectivity) grew out of Excel's requirement to do so. Excel can connect to any database with an ODBC driver. The latest ODBC driver for MySQL can be found at https://dev.mysql.com/downloads/connector/odbc/ More complete documentation is at https://dev.mysql.com/doc/connector-odbc/en/connector-odbc-introduction.htmlThe MySQL team also has an Excel add-in for making connections easier. It is documented at https://dev.mysql.com/doc/mysql-for-excel/en/mysql-for-excel-intro.htmlThere is an old, but I imagine still valid, tutorial for making the Excel-MySQL connection at https://helpdeskgeek.com/office-tips/excel-to-mysql/There is a separate question on if your Excel spreadsheet relies on SQL Server-specific features that can't be provided by MySQL or Aurora MySQL. I have no examples in mind, just pointing out it is possible.Since you are talking Aurora Serverless here keep in mind that you can't currently give a public IP address to an Aurora Serverless cluster. It can only be accessed from within a VPC. So to allow access from Excel on the administrator's PC to the Aurora Serverless cluster you will need to proxy that access through an EC2 node running in the VPC (i.e., by using SSH Tunneling).I haven't tried this myself, but I'm sure it has been done for Excel use. Maybe someone else an comment. Also, you may want to post this question to the RDS forum as it has a greater participation (including of Aurora users).CommentShareHalTempanswered 4 years ago"


Question: not able to clone codecommit repo on my local computer

"hi team,I am trying to clone my repo from codecommit but getting 403 error.I have my aws configured for the user. My user has admin access as well.Also its not asking for the credentials and straight away giving this error.Please suggest.FollowCommentvtjean a month agoHave you setup AWS CLI on your local machine? https://docs.aws.amazon.com/cli/latest/reference/configure/Sharevtjean a month agoCan you provide a screenshot that shows how you're cloning the repo on your local machine and the error message?Share"

Answer: 0Have you Set up the credential helper?CommentShareEXPERTkentradanswered a month ago


Question: Access an Oracle instance  by remote machine

Is it possible to make an Oracle database instance accessible by a remote machine / restricted by IPFollowComment

Answer: "2It is possible to control access by IP address.This can be controlled by setting the IP addresses to which access is allowed in the inbound rules of the security group set for the instance.For more information, please refer to the following documents.https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/Oracle.Resources.Shared.htmlhttps://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/Overview.RDSSecurityGroups.htmlCommentShareEXPERTRiku_Kobayashianswered 8 days ago"


Question: Using Functions within custom Conformance Pack resources

"Hi,I need help to use a function that concatenates a parameter with a static value within a remediation rule.I have the following custom Conformance Pack, where I want to define the AutomationAssumeRole as a parameter.Parameters:  ParamAutomationAssumeRole:    Default: ComplianceRemediation    Type: StringResources:  Ec2SecurityGroupAttachedToEni:    Type: AWS::Config::ConfigRule    Properties:      ConfigRuleName: ec2-security-group-attached-to-eni      Scope:        ComplianceResourceTypes:          - AWS::EC2::SecurityGroup      Source:        Owner: AWS        SourceIdentifier: EC2_SECURITY_GROUP_ATTACHED_TO_ENI  Ec2SecurityGroupAttachedToEniRemediation:    DependsOn: Ec2SecurityGroupAttachedToEni    Type: "AWS::Config::RemediationConfiguration"    Properties:      ConfigRuleName: ec2-security-group-attached-to-eni      ResourceType: "AWS::EC2::SecurityGroup"      TargetId: "AWSConfigRemediation-DeleteUnusedSecurityGroup"      TargetType: "SSM_DOCUMENT"      TargetVersion: "1"      Parameters:        GroupId:          ResourceValue:            Value: "RESOURCE_ID"        AutomationAssumeRole:          StaticValue:            Values:              Fn::Sub:                  "arn:aws:iam::${AWS::AccountId}:role/${ParamAutomationAssumeRole}"Based on this doc, I could use the "Fn::Sub:" function, but the Conformance Pack deployment fails with the following error:I'm not sure what I'm doing wrong here. Any help is much appreciated.Thanks!FollowComment"


Question: VPC Peering with ASG

"So its not possible to access an Elastic Load balancer over a VPC Peering when an ASG is used as the ASG is looking for a target type of instance ID and having IP isn't an allowed value.I'm not aware of any alternatives, without having to manually add the IP address to a target groupRefhttps://docs.aws.amazon.com/autoscaling/ec2/userguide/getting-started-elastic-load-balancing.htmlhttps://docs.aws.amazon.com/elasticloadbalancing/latest/network/load-balancer-troubleshooting.htmlFollowComment"

Answer: "1I have not tried this but I wonder if you could use Amazon EC2 Auto Scaling lifecycle hooks to automate adding and deleting  the IPs in a target group as the instances are being added and removed from the auto scaling group.CommentShareEXPERTkentradanswered a month agojoet a month agoThanks- not a bad shout. My only concern is that if an instance becomes unhealthy the script wouldn't be able to run from that instance; so the instance starting up would need to obtain the active instances from the ASG to then update the IPs for the target group.I've not used lifecycles hooks so it would be something I'd look in to further.But I suspect this is the only method to achieve this.. Which is a shame as its just seems a bit like a bodge until AWS implements somethingShare0Accepted AnswerI used instance (type) on the asg, and disregarding what the AWS article says about VPC peeing, I've been able to access the resources fine.CommentSharejoetanswered 23 days ago-1Is there any reason not to create an ELB in the same VPC as EC2?If you are doing VPC peering, it would be possible to create an ELB in the same VPC as EC2 to work with other systems.CommentShareEXPERTRiku_Kobayashianswered a month agojoet a month agoThe ELB is in the same VPC as the instances, the problem mainly comes down to that it isn't possible to have an ASG and use a target type (on the TG) as IP rather than instance ID. [2]Env:Internal NLB with a target group, type set to IPASG with a launch template, When trying to set the load balancer to the NLB the following error is generatedAttaching target groups failedProvided Target Group 'arn:aws:elasticloadbalancing:eu-west-2:####:targetgroup/nlb-tg/0000' has invalid target type. Please ensure all provided Target Groups have target type of instance.But when VPC peering in used, it isn't possible to access the load balancer targets (if the TG type is set to Instance ID, and IP is required. But an ASG cannot be used with this type). [1][1] https://docs.aws.amazon.com/elasticloadbalancing/latest/network/load-balancer-troubleshooting.html[2] https://docs.aws.amazon.com/autoscaling/ec2/userguide/getting-started-elastic-load-balancing.htmlShare"


Question: we lost phone with MFA code that can be verified 3 company accounts .

we lost phone with MFA code that can be verified 3 accounts .we want to login that  accounts without MFA codecan i get some help?FollowComment

Answer: "1Here are the procedures for lost/broken MFA: What if an MFA device is lost or stops working?.CommentShareEXPERTkentradanswered 10 months ago1Log in to console as root user (user name & password) but under the token text box, you can find the option to troubleshoot MFA and follow the steps.CommentShareAkbar Majeedanswered 10 months ago0thanks for your replyfrom Option to troubleshoot MFA Mail authentication is possible in , but the registered phone number seems to be wrong.CommentSharerePost-User-2033248answered 10 months ago"


Question: Instance stopped working alone

"Hi,Why would my instance stop running by itself?Instance: i-0d09b948e97c3c12a (boat-production)I have this service from 2015 and it never happened before.Could you please let me know why and how I can get notified when it stops?It is running fine now, I had to log in and start it manually.Thank you,GeorgeFollowComment"

Answer: "0There are several things that could have caused the instance to stop. One of said possible reasons could be underlying hardware failure causing the instance to need to be shutdown. You can view these types of events on your accounts PHD (https://health.aws.amazon.com/health/home#/account/dashboard/open-issues) and setup alerts to let you know when they occur.You can also setup alerts/notifications via https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/using-cloudwatch-createalarm.html on the ec2 instance directly and setup custom alarm actions.CommentShareAWS-User-6621777answered a month ago0Hi,Although it is not something that happens frequently, an EC2 instance could be stopped due to a scheduled event, when AWS detects irreparable failure of the underlying host for your instance. Could you checked if that is what happened?AWS sends an email to the email associated with the AWS account prior to the scheduled event, providing details about the event, including the start and end date, but also sends an AWS Health event, which you can monitor and manage by using Amazon CloudWatch Events. Additionally, you can create an EventBridge rule on a scheduled event, and send a notification via SNS or further processing through an AWS Lambda.CommentShareMikel Del Tioanswered a month ago"


Question: Struggling with Site to Site VPN using CiscoASAv and Public Encryption Domains

"We need to connect from our VPC to multiple partners via Site to Site VPN.  Most of our partners can NOT have/connect to private IPs for their encryption domains.Unfortunately, AWS Site to Site VPN does not support this.We've set up Cisco ASAv according to the instructions and I've been able to establish a test VPN connection, but there are still a couple of issues:We're not sure how to incorporate public IPs into ASAv the configuration. We have 3 EIPs allocated. One is assigned to the ASAv's OUTSIDE interface, which is used as the VPN Peer address. The other two are unassigned. Not sure if I just leave them unassigned and configure them as the public NAT address or If I need to assign them to the OUTSIDE ASAv interface as wellWe have two EC2 Instances on the INSIDE subnet. How do you change the default gw to be the ASAv's inside IP? If I change the IP config in the EC2 instance from DHCP to Static, I believe it will just change back. It's seems like there would be other issues as well. Should I allocate a second interface to the EC2  and separate the traffic? Is it better to just use static routes for the traffic to the partners?ThanksFollowComment"

Answer: "0Hello,This has been handled by the new feature released on the AWS VPN with Private IP's.Link- https://aws.amazon.com/blogs/networking-and-content-delivery/introducing-aws-site-to-site-vpn-private-ip-vpns/https://aws.amazon.com/about-aws/whats-new/2022/06/aws-site-vpn-introduces-private-ip-security-privacy/Let me know if this helped !!CommentShareSUPPORT ENGINEERAWS-User-Chiraganswered 10 months ago"


Question: Formatting csv table data before upload to Redshift

"Pretty basic newbie redshift question here.  Wanting to upload historical test data to a redshift database and the data as we have it is in multiple csv's and is formatted in typical table format with columns set as like this:| Time | Var1 | Var2 | Var3 || 0       | 2       | 3       | 4       || 1       | 4       | 5       | 6       || 2       | 6       | 7       | 8       |In the past for other projects we've had data imported to redshift using COPY from s3 and the data was already formatted like below, which I've read is more efficient for querying in redshift:| Time | Var   | Value || 0       | Var1 | 2        || 0       | Var2 | 3        || 0       | Var3 | 4        || 1       | Var3 | 4        || 1       | Var2 | 5        || 1       | Var3 | 6        || 2       | Var1 | 6        || 2       | Var2 | 7        || 2       | Var3 | 8        |For this new data do we need to be transforming it to match the columnar setup before uploading to redshift?  Are there situations where this reformatting is not necessary?FollowCommentrobcube 4 months agoI would experiment both ways. That'd be a fun exercise regardless! Plus would readability be a factor in making a decision on how you'd store the data?Share"

Answer: "0The idea of a columnar-storage database like Redshift for OLAP is that you can have tables with many columns and still be able to efficiently query just a small subset of columns across many rows.   So I'd say there's no need to reformat as you're suggesting.  However I don't have broad enough experience in this area to say it's NEVER a good idea, you may have special requirements.CommentShareEXPERTskinsmananswered 4 months ago0The CSV file columns should match table columns. From your example the second file seems like a pivot of the first file. Since the layout is different you can create a second staging table for the second file and after loading the data with COPY command you can use the PIVOT/UNPIVOT to transform into first layout.If the two files are independent then you can leave it as two separate tables. When running queries and joining the two tables you can use the PIVOT/UNPIVOT to transform at query execution time.Having data as key-value pairs gives you flexibility of a varying schema but when running queries you often need to transform into tabular column format so it is easy to join with other tables. If your originating system is providing data in key-value pairs then use a staging schema that matches the source file format which will give you fast performance for write queries i.e., data ingestion. Then apply your transformations in intermediate or target schema which will give you fast join performance for your read queries.CommentShareMilindOkeanswered 4 months ago"


Question: What would cause the Cloudwatch to Opensearch lambda to timeout?

I'm setting up what should be a simple integration from Cloudwatch logs into a basic Opensearch domain i just created. The lambda is timing out with no further indication of what is going on.  I've searched various articles and there is no description of this particular problem.  Any suggestions as to what I should even look at?The cloudwatch logs and the opensearch domain are in the same account... this should be the simplest use case of all and should just work!FollowComment

Answer: "1Are you using a VPC-enabled Lambda function to stream logs to the OpenSearch cluster? If so, have you verified that the Lambda function has access to the cluster? Depending on the type of security controls in place (e.g., fine-grained access control), there are different configurations you can check. The following documentation has a flowchart you can follow to troubleshoot the timeout issue.The bigger picture: fine-grained access control and OpenSearch Service securityAdditionally, I recommend adding verbose logging in your Lambda function code to help you understand where it is timing out if there are multiple logics being performed.CommentShareTaka_Manswered 5 months ago1Make sure that your Lambda function is idempotent and you should try initialize your function's static logic outside of the function handler. Using CloudWatch Logs for Lambda to your investigation viewing all logs generated by your function's code and identify potential issues. "https://aws.amazon.com/premiumsupport/knowledge-center/lambda-troubleshoot-invocation-timeouts/"CommentShareAWS-User-9394507answered 5 months ago"


Question: Direct connect association with VGW

"Hello,I have one VPC in each AZ in Mumbai region.  Planning to apply for two direct connect port(hosted)Question.1.) Can I link VGW of each VPC in AZ1 and AZ2 to direct connect or do I need to have a direct connect gateway association with each VGW. and than Gateway association with direct connect using private interface?Want to have a low cost solutionKindly suggestFollowComment"

Answer: "0Accepted AnswerHello,I recommend checking the below link which describes all the options you have for all the VIF Types. Specifically the scenario you are looking at is shown as Option1 Or Option 2. In general, if your network is going to expand globally or multi-region we recommend using Direct Connect Gateway which is a global construct you can use to consolidate your connectivity.https://docs.aws.amazon.com/whitepapers/latest/building-scalable-secure-multi-vpc-network-infrastructure/direct-connect.htmlCommentShareEXPERTTushar_Janswered 8 months ago0Thanks for the clear description.If you have only one VPC, you create one VGW and attach it to the VPC (instead of AZs). Direct Connect Gateway is not necessary unless you plan to connect to more than one VPCs in any account that are located in the same or different Regions.Attaching here the reference architecture from https://docs.aws.amazon.com/whitepapers/latest/aws-vpc-connectivity-options/aws-direct-connect.html and check the document for additional diagrams.CommentShareweidianswered 8 months agoAWS-User-8898010 8 months agoso In my scenario I will have two direct connect and 1 S2S VPN.   Can I associate all three with the same VGWShare"


Question: DMS MSSQL Server to S3 in Parquet format datetime to timestamp issue

"Hello all,I recently extracted a database schema from MSSQL Server to S3 in Parquet format via DMS. All of the data looks great, with the exception of any column that was a datetime data type in MSSQL Server.I ran a Glue Crawler on the output and it correctly identified the column names and data types, specifically identifying the datetime columns as timestamp. The issue I have is that when I run a query in Athena on the DMS extracted data and look at a timestamp column I am getting +49311-02-25 00:00:00.000, when I should see 2017-05-05 00:00:00.For the same table I did a manual extract via Spark and output it to Parquet and stored it in S3. I then created the table with an identical definition, save for the file location. When I queried the manually extracted table in Athena it displayed the timestamp column correctly.Any ideas what might have happened? Any suggestions for how to configure my DMS S3 Endpoint to generate the correct timestamp?Thanks,KyleFollowComment"

Answer: "0I have some updated information. I was able to get the schema of the DMS generated parquet and it has this for the column that will be a timestampoptional int64 PROCESS_DATE (TIMESTAMP_MICROS);Here is the schema for the pyspark 2.3.2 generated parquet file using defaults for this versionoptional int96 PROCESS_DATE;Also, it was brought to my attention that if you take the int64 value from the DMS parquet, eg PROCESS_DATE = 1493942400000000, and translate as a timestamp in nanoseconds it comes out to  2017-05-05. Plus it appears that is not associated to MSSQL Server, as I test extracting a MySQL table with a datetime column and it did the exact same thing.CommentSharekyhutch209answered 4 years ago0After further research, I discovered that I was incorrect in assuming that the actual value was in nanoseconds, it is actually in microseconds just like the Parquet Schema states. I no longer think this is a DMS issue and believe it is an issue with Athena not being able to read the value correctly. Using https://www.epochconverter.com/ with the 1493942400000000 value it comes back with 2017-05-05 and identifies it as a microsecond time value. If you remove the last three zeros from it and run it again, you get the same result and it identifies it as milliseconds.However if you run this in AthenaSELECT from_unixtime(1493942400000)you get the following response+49311-02-25 00:00:00.000Oh, it looks like from_unixtime is expecting the value to be in seconds.SELECT from_unixtime(1493942400)2017-05-05 00:00:00.000So I guess the hacky solution would be to set the column to BIGINT, then select timestamp column in Athena like so from_unixtime(col1/1000/1000).CommentSharekyhutch209answered 4 years ago0For me adding parquetTimestampInMillisecond=true to the extra connection attributes of the target endpoint fixed thisCommentShareequationcrunchoranswered 4 years ago0equationcrunchor wrote:For me adding parquetTimestampInMillisecond=true to the extra connection attributes of the target endpoint fixed thisThank you @equationcrunchor - this worked for me extracting from SQL Server 2016CommentSharehellohuddoanswered 3 years ago"


Question: Unable to upload to S3 while using amazon polly.

I am getting this error : Error occurred while trying to upload file to S3. Please verify that the bucket exists in this region and you have permission to write objects to the specified bucket.Please help me solve this. I am completly new to aws.FollowComment

Answer: "0Do the following steps to troubleshoot:Go to S3 and verify  in which region the S3 Bucket you're using was created.Access S3 Bucket you're using and click on Permissions, then scroll down to Bucket Policy and verify if there's a policy attached that's blocking your access.Go to Polly and verify in which region the Polly instance you're using was created.CommentSharevtjeananswered 14 days ago0to expand on @vtjean comment answer with links to the documentation:you need to call StartSpeechSynthesisTask with an IAM user or IAM role that is allowed to access Polly and to write to S3 bucket you specify. See https://docs.aws.amazon.com/polly/latest/dg/asynchronous-iam.html for an example of the policy that can be used for that purpose. For a guide on troubleshooting S3 access see https://docs.aws.amazon.com/AmazonS3/latest/userguide/troubleshoot-403-errors.html#bucket-iam-policies.the bucket that you intend to use must be in the region that you use to call Polly. You can check bucket region either in S3 AWS console page or using a CLI: get-bucket-locationCommentShareszymon-awsanswered 13 days ago"


Question: Component Reflect custom attributes?

"So I'm dealing with a library that when you load a file with it, it has a list of parameters that are separated as followed: id, name, min, max, value.These parameters are dynamic in size depending on the file, i.e. one file can have 2 parameters and another can have 10.What i am wondering is how I can add in an attribute list to the editor through the component's reflect system to have a list of these parameters with a name of the parameter and a ui slider for it.I.E.[NAME][0.0][-----|----]or something similar to this.Follow"

Answer: "0Accepted AnswerOk, so here's how i did it:Header:#pragma once#include <AzCore/Component/Component.h>#include <AzCore/Serialization/SerializeContext.h>class Parameter {public:AZ_RTTI(Parameter, "<UUID>");public:virtual ~Parameter() {}AZStd::string name;float val;public: //editor stuffAZ::Edit::ElementData ed;void InitEdit();public: //RTTI stuffstatic void Reflect(AZ::SerializeContext* serializeContext);};class ParameterGroup {public:AZ_TYPE_INFO(ParameterGroup, "<UUID>");public:AZStd::string m_name;AZStd::vector<Parameter*> m_params;void Clear();ParameterGroup() : m_name("Parameters") {}~ParameterGroup() { Clear(); }// Disallow copying, only movingParameterGroup(const ParameterGroup& rhs) = delete;ParameterGroup& operator=(ParameterGroup&) = delete;ParameterGroup(ParameterGroup&& rhs) { *this = AZStd::move(rhs); }ParameterGroup& operator=(ParameterGroup&& rhs);public:static void Reflect(AZ::SerializeContext* serializeContext);};class ParameterComponent: public AZ::Component{public:AZ_COMPONENT(ParameterComponent, "<UUID>", AZ::Component)public:ParameterComponent();~ParameterComponent() override;protected: // member functions// AZ::Componentvoid Init() override;void Activate() override;void Deactivate() override;// ~AZ::Componentpublic: // static member functionsstatic void GetProvidedServices(AZ::ComponentDescriptor::DependencyArrayType& provided) {(void)provided}static void GetIncompatibleServices(AZ::ComponentDescriptor::DependencyArrayType& incompatible) {(void)incompatible}static void GetRequiredServices(AZ::ComponentDescriptor::DependencyArrayType& required) {(void)required}static void Reflect(AZ::ReflectContext* context);private: //dynamic editor listingstatic const AZ::Edit::ElementData* GetEditData(const void* handlerPtr, const void* elementPtr, const AZ::Uuid& elementType);const AZ::Edit::ElementData* GetDataElement(const void* element, const AZ::Uuid& typeUuid) const;struct ElementInfo {AZ::Uuid m_uuid; // Type uuid for the class field that should use this edit data.AZ::Edit::ElementData m_editData; // Edit metadata (name, description, attribs, etc).};AZStd::unordered_map<const void*, ElementInfo> m_dataElements;private:void LoadParams();void FreeParams();private:ParameterGroup group;};Source:#include "StdAfx.h"#include <AzCore/Math/Crc.h>#include <AzCore/Serialization/SerializeContext.h>#include <AzCore/Serialization/EditContext.h>#include <AzCore/RTTI/BehaviorContext.h>#include <AzCore/Component/ComponentApplicationBus.h>#include "DynamicAttributes.h"ParameterComponent::ParameterComponent() {}ParameterComponent::~ParameterComponent() {}void ParameterComponent::Init() {}void ParameterComponent::Activate() {}void ParameterComponent::Deactivate() {}void ParameterComponent::Reflect(AZ::ReflectContext* context) {AZ::SerializeContext* serializeContext = azrtti_cast<AZ::SerializeContext*>(context);if (serializeContext) {Parameter::Reflect(serializeContext);ParameterGroup::Reflect(serializeContext);serializeContext->Class<ParameterComponent, AZ::Component>()->Version(1)->Field("Params", &ParameterComponent::params)AZ::EditContext* ec = serializeContext->GetEditContext();if (ec) {//basic editor dataauto editInfo = ec->Class<ParameterComponent>("ParameterComponent", "Example of how to list custom parameters");editInfo->ClassElement(AZ::Edit::ClassElements::EditorData, "")->Attribute(AZ::Edit::Attributes::Icon, "Editor/Icons/Components/CharacterPhysics.png")->Attribute(AZ::Edit::Attributes::ViewportIcon, "Editor/Icons/Components/Viewport/CharacterPhysics.png")->Attribute(AZ::Edit::Attributes::AppearsInAddComponentMenu, AZ_CRC("UI", 0x27ff46b0))->Attribute(AZ::Edit::Attributes::AutoExpand, true);//set the dynamic edit data providereditInfo->SetDynamicEditDataProvider(&ParameterComponent::GetEditData);//parameters group{editInfo->DataElement(0, &ParameterComponent::params, "Parameters", "List of parameters.");ec->Class<ParameterGroup>("Parameter Group", "The group of parameters")->ClassElement(AZ::Edit::ClassElements::EditorData, "ParameterGroup's class attributes.")->Attribute(AZ::Edit::Attributes::NameLabelOverride, &ParameterGroup::m_name)->Attribute(AZ::Edit::Attributes::AutoExpand, true)->DataElement(0, &ParameterGroup::m_params, "m_params", "Parameters in this property group")->Attribute(AZ::Edit::Attributes::Visibility, AZ::Edit::PropertyVisibility::ShowChildrenOnly);ec->Class<Parameter>("Parameter", "A Parameter")->ClassElement(AZ::Edit::ClassElements::EditorData, "Parameter Attribute.")->Attribute(AZ::Edit::Attributes::Visibility, AZ::Edit::PropertyVisibility::ShowChildrenOnly)->DataElement(AZ::Edit::UIHandlers::Slider, &Parameter::val, "val", "A float");}}}}const AZ::Edit::ElementData* ParameterComponent::GetEditData(const void* handlerPtr, const void* elementPtr, const AZ::Uuid& elementType) {const ParameterComponent* owner = reinterpret_cast<const ParameterComponent*>(handlerPtr);return owner->GetDataElement(elementPtr, elementType);}const AZ::Edit::ElementData* ParameterComponent::GetDataElement(const void* element, const AZ::Uuid& typeUuid) const {auto it = m_dataElements.find(element);if (it != m_dataElements.end()) {if (it->second.m_uuid == typeUuid) {return &it->second.m_editData;}}return nullptr;}void ParameterComponent::LoadParams() {for (int i = 0; i < 10; i++) {Parameter * p = new Parameter;p->name = AZStd::string(itoa(i));p->val = 1.0f;this->params.m_params.push_back(p);//editor datap->InitEdit();ElementInfo ei;ei.m_editData = p->ed;ei.m_uuid = AZ::SerializeTypeInfo<float>::GetUuid();this->m_dataElements.insert(AZStd::make_pair(&p->val, ei));}this->group.m_params.shrink_to_fit(); //free up unused memory}void ParameterComponent::FreeParams() {this->group.Clear();this->m_dataElements.clear(); //clear all editor data}void Parameter::InitEdit() {this->ed.m_elementId = AZ::Edit::UIHandlers::SpinBox;this->ed.m_name = this->name.c_str();this->ed.m_description = this->name.c_str();}void Parameter::Reflect(AZ::SerializeContext* serializeContext) {serializeContext->Class<Parameter>()->Version(1)->Field("name", &Parameter::name)->Field("value", &Parameter::val);}void ParameterGroup::Clear() {if (this->m_params.size() != 0) {this->m_params.clear(); //clear the parameters vector}}void ParameterGroup::Reflect(AZ::SerializeContext* serializeContext) {serializeContext->Class<ParameterGroup>()->Field("Name", &ParameterGroup::m_name)->Field("Params", &ParameterGroup::m_params);}SharerePost-User-8564951answered 6 years ago0Up. Very interesting subject indeed.SharerePost-User-7621041answered 6 years ago0Hey @REDACTEDUSERSharerePost-User-8353690answered 6 years ago0Well dang, sorry that answer didn't. I've updated the ticket.SharerePost-User-8353690answered 6 years ago0So to get that correct:You are asking how you can reflect variables from your component?Currently you are trying to write an adapter or interface for your library and want to have some variables in the editor over a component to do something with the libraries interface.So I am not sure if you are asking for this:http://docs.aws.amazon.com/lumberyard/latest/developerguide/component-entity-system-reflect-component.htmlWhere that part would be particularly interesting for you:    /*static*/ void MyComponent::Reflect(AZ::ReflectContext* context){AZ::SerializeContext* serialize = azrtti_cast<AZ::SerializeContext*>(context);if (serialize){// Reflect the class fields that you want to serialize.// In this example, m_runtimeStateNoSerialize is not reflected for serialization.serialize->Class<MyComponent>()->Version(1)->Field("SomeFloat", &MyComponent::m_someFloatField)->Field("SomeString", &MyComponent::m_someStringField)->Field("Things", &MyComponent::m_things)->Field("SomeEnum", &MyComponent::m_someEnumField);AZ::EditContext* edit = serialize->GetEditContext();if (edit){edit->Class<MyComponent>("My Component", "The World's Most Clever Component")->DataElement(AZ::Edit::DefaultHandler, &MyComponent::m_someFloatField, "Some Float", "This is a float that means X.")->DataElement(AZ::Edit::DefaultHandler, &MyComponent::m_someStringField, "Some String", "This is a string that means Y.")->DataElement("ComboBox", &MyComponent::m_someEnumField, "Choose an Enum", "Pick an option among a set of enum values.")->EnumAttribute(MyComponent::SomeEnum::EnumValue1, "Value 1")->EnumAttribute(MyComponent::SomeEnum::EnumValue2, "Value 2")->DataElement(AZ::Edit::DefaultHandler, &MyComponent::m_things, "Bunch of Things", "A list of things for doing Z.");}}}SharerePost-User-5460328answered 6 years ago0Nope, this is for a dynamic reflection.In essence, reflect currently allows for static reflection where all the edit components are already defined. The only dynamic sections is where you use, i believe, vectors variables for the data element sections which allow for a range of a specific type of variable, i.e. integer, string, etc.What I am trying to figure out is dynamic reflection to where you can have a vector of stucts or something similar to where you can define how the data element looks.So for the example above:[NAME][0.0][----|----]broken down:[NAME] -> string[0.0] -> float[----|----] -> UISliderso what would be useful is an attribute to define how a data element looks like.maybe like:->Attribute(AZ::Edit::DataView, "string, float, UISlider");and to use it, the data element variable would need to pass an array to display it's variables or receive an array to change it's variables.auto[] GetElements();void SetElements(auto[] elements);this kind of system would allow for a wider range of options concerning editing.SharerePost-User-8564951answered 6 years ago0Which would be find if it was a no parameter function.But sadly, it's has a ReflectContext parameter and that's something that's probably deep code in there for it to work and would be like pulling hairs to even get something like that working.SharerePost-User-8564951answered 6 years ago0Thanks for the great answer @REDACTEDUSERSharerePost-User-8353690answered 6 years ago0Not sure if you are able to reflect again during run time, you could try it easily though.Your program could adapt between pre-defined (hard coded) reflections, so if your interface underneath changes, call reflect again, and inside the reflect function you have have a switch statement which reflects differently depending on which state your library interface has currently, if that makes sense?SharerePost-User-5460328answered 6 years ago0I am afraid, that sounds quite impossible out of the box. I thought about it again and I think even calling reflect during RT would not work.But does it need to be a component?You could write an editor extension that controls the library.SharerePost-User-5460328answered 6 years ago0So, I've been looking into the EditorContext.h file and found "SetDynamicEditDataProvider".Is there any references that use that. I dont know if it's something that can be used for what i was thinking of.EDIT: The script editor component for attaching script properties to the editor!This might be it!EDIT2: The more i read ScriptEditorComponent, ScriptComponent, and ScriptProperty, the less i understand it... @REDACTEDUSEREDIT3: so... from my understanding, you define each dynamic type with a Class<class> and a ClassElement(EditorData). Then using the DynamicEditDataProvider, it looks up from a reflected list of dynamic entries and provides it's ElementData of it, which is how the dynamic type should look like, it's name, description, and the class element to reflect the data from.SharerePost-User-8564951answered 6 years ago0The entirety of it is programmed as a component for usage in LyShine.Dont think i can migrate it to an individual editor extension if it is bound to LyShine pretty tightly...SharerePost-User-8564951answered 6 years ago0I F**KING DID IT!That was the right way of doing it!Freaking hell yea!SharerePost-User-8564951answered 6 years ago0The important thing you need to to is that after you modify the m_dataElements, you need to refresh the entire tree.You can either refresh the tree via ebuses, ala "EBUS_EVENT(ToolsApplicationEvents::Bus, InvalidatePropertyDisplay, Refresh_EntireTree);" or by having "->Attribute(AZ::Edit::Attributes::ChangeNotify, AZ::Edit::PropertyRefreshLevels::EntireTree);" for one of the "DataElement".The only drawback that I seem to have found is that for LyShine, any data changed in the dynamic list does not seem to work with the UI Animation system.To see more about this or where I figure this out from, check in "AzToolsFramework/ToolsComponents/ScriptEditorComponent"SharerePost-User-8564951answered 6 years ago0Please can you post a sample source of the correct answer?SharerePost-User-7621041answered 6 years ago0uh... i did... 2 days ago...SharerePost-User-8564951answered 6 years ago"


Question: Amazon connect delay callback until next day

"Hi - we have customer service hours that depend on the number the customer is calling (we offer different levels of service). If a caller is calling outside of the hours that their SLA entitles them to we offer them a callback the following day, which is great from a service and retention POV. However, as we have agents still logged in servicing the same queue but for more premium subscribers, they obviously immediately get the callback - What setup/logic would you advise so that these calls can be queued until the next working day, etc. The logic to check which number a caller is calling is all done in the main contact flow, with all valid calls being routed straight to the queue, and invalid calls (at that time) being offered a callback.Each user has their own routing profile,with some users assigned to more than one queue.Any help gratefully received.FollowComment"

Answer: "0Accepted AnswerThere is no inbuilt way to schedule callbacks for a certain time, particularly as the Initial Delay option doesn't support using attributes. There are a few ways of approaching this including but not limited to:Create a new queue and add it to the appropriate routing profiles, then use this queue for the callbacks, then use check hours of operation and a wait block  in the customer queue flow for that queue.Use tasks. Tasks can have the start time set, up to 6 days in the future. The tasks could then be either sent to agents and they then manually make the callback, or you can set the callback number from the attributes attached to the task and add the call to a queue as a normal callback.Do what I did for a customer that wanted scheduled callbacks and create a full system for handling the callbacks. This gives the most control as with this I have been able to have limits to the number of callbacks allowed so the system doesn't get overwhelmed (i.e. you don't end up with 100 callbacks waiting first thing in the morning), and it gives the customer complete visibility of waiting callbacks and the ability to edit/delete them if necessary. But this of course is a much larger piece of work.For a quick result I'd go with option 2, but for a long term robust solution option 3 is better.CommentShareledgeanswered a year agoNickW a year agoThanks for the thoughtful and detailed answer - yep, 3 seems like a great solution. As you say, we could take the calls out of the Connect domain completely until they should be re-queued. Nice.Share0Came across this helpful github project.  We're going to evaluate it for our use-case where we don't want to call people back too early in the morning (we have some reps that come online at 6am and some people just don't want to be called back that early).https://github.com/aws-samples/amazon-connect-callback-helperCommentShareuwrangeranswered a year ago"


Question: how to delete or cleanup DATA_PUMP_DIR  in Oracle RDS

"Hello ,I am looking for solution on deleting multiple files at a time from Oracle RDS DATA_PUMP_DIR.I can see that more than 100 files present in one of my RDS DATA_PUMP_DIR and for cleanup activity we have delete it one by one with below sql as : exec utl_file.fremove('DATA_PUMP_DIR','file.log') ;is there any solution or script available with the help of that I can delete multiple files or cleanup complete DATA_PUMP_DIR please let me know.FollowComment"

Answer: "2Accepted AnswerDelete files in DATA_PUMP_DIR that you no longer require, use the following command.EXEC UTL_FILE.FREMOVE('DATA_PUMP_DIR','filename');To delete all files in DATA_PUMP_DIR, you could you something below..beginfor i in (select filename fromtable(RDSADMIN.RDS_FILE_UTIL.LISTDIR('MY_DIR')) where type='file')loopUTL_FILE.FREMOVE ('DATA_PUMP_DIR', i.filename);end loop;end;/Please test the script/procedure in non-production before moving on to production and acknowledge the answer.CommentShareawsramsanswered 4 months agoRajdeep R 4 months agoIts working , Thank youShare"


Question: Athena query failing

"HIVE_CANNOT_OPEN_SPLIT: Error opening Hive split s3://vsgdev/amahal797/year_p=2022/month_p=11/day_p=28/file.parquet (offset=603979776, length=33554432): Multiple entries with same key: [rpdname] optional binary =min: , max: d11_walledgarden_v6.cm, num_nulls not defined and [rpdname] optional binary =min: , max: SNTCDSFW03, num_nulls not definedThe Database table was populated using S3 parquet file.any idea what this error means?FollowComment"

Answer: "0The error that you are facing occurs mostly due to the presence of duplicates in the file that the Athena was trying to fetch. Upon looking at the error message that you shared, I can say that the file.parquet present in your s3 location consists of duplicate parameter 'rpdname' which might be causing the issue.Therefore, to mitigate this issue, I suggest you to check the contents of file.parquet for the duplicates and then remove/modify one of the 'rpdname' fields and then rerun the query. Basically, I think that the issue is with the underlying data but not the query. Thus check and clean the data before you run the query.CommentShareSUPPORT ENGINEERChaituanswered 6 months ago"


Question: GENERIC_INTERNAL_ERROR: java.net.URISyntaxException: Relative path in absolute URI: arn:aws:dynamodb:eu-west-1:[account]:table/[table-name]

Hi I'm using Athena to query AWS glue tables setup by a crawler from Dynamo DB.A Athena query to :show tablesworks perfectHowever when i do a simple select on any of the tables I get:GENERIC_INTERNAL_ERROR: java.net.URISyntaxException: Relative path in absolute URI: arn:aws:dynamodb:eu-west-1:[account]:table/[table-name]My query ID is: Query Id: 22e3a909-f7b4-41a7-9dfb-96b081f4b3b5FollowCommentpinkpanther 10 months agoHi. How did you get pass this error? I'm having the same problem.Share

Answer: "0I had the wrong datasource and database selected in my query editor. When I changed those to the correct values, my query ran correctly. Hope this helps, cheers!CommentShareJasonMereckiMaxanswered 10 months ago"


Question: CloudWatch how to disable metrics?

"Hi,I use CloudWatch only to display up to 10 metrics on dashboard. However, this month I discovered that they started charging me for it.In my billing I've got$0.30 per metric-month for the first 10,000 metrics - EU (Frankfurt)         1.348 Metricbut I use only like below 10 (which is free). My guess is that DynamoDB consumes metrics. How can I disable them or even if it's possible I could disable whole CloudWatch.Best regrads,WojciechFollowComment"

Answer: "0Hi Wojciech,From the information you shared I think you are using Cloudwatch Dashboard to view some top Cloudwatch metrics (10 Metrics in your case) as per your requirement and you are being charged for it.So you are right here if you will use Cloudwatch Dashboard then you will ve charged as per below pricing model because we charge for Dashboard separately.Amazon CloudWatch Dashboards$3.00 per dashboard per month  $0.30 per metric-month for the first 10,000 metrics - EU (Frankfurt) 1.348 MetricSo this charge is for Custom Metrics not for AWS Provided Metrics. If you are using any custom metric then you would be charged as per below pricing model. However if you don't want to use any Custom Metric then there is no way to delete them however if you will stop pushing data points for continuous 14 days then that particular Metric would expire after 14 days and you won't be charge for that. AWS Provided metrics like CPU Utilization or Network In and Out for EC2 are free as they are Amazon Provided Metrics however if you will enable detailed monitoring then it will be charged as in detailed monitoring we push data points after every 1 min as compare to Standard Monitoring in which we push data points after every 5 min.Amazon CloudWatch Custom Metrics$0.30 per metric per month for the first 10,000 metrics  Also there is no way to disable Cloudwatch or any Metric but if you stop pushing data points then after 14 days it will automatically get expired and you won't be charged for it. Also you only charged for Custom Metrics not for AWS Provided Metrics.Please find the link below for more details regarding pricing Model:https://aws.amazon.com/cloudwatch/pricing/Please let me know if you have further query on same.CommentShareAWS-User-7784931answered 5 years ago"


Question: Device Farm: Changing chromedriver binary causes chrome not reachable

HiIs there any documentation for updating chromedriver from the installed v2.38 version to any other from https://chromedriver.chromium.org/downloads.I've placed this code in the install phase.- curl -L "https://chromedriver.storage.googleapis.com/2.38/chromedriver_linux64.zip" -o /tmp/chromedriver_linux64_new.zip 2> /dev/null;       - unzip /tmp/chromedriver_linux64_new.zip -d /tmp >/dev/null;       - rm -rf $DEVICEFARM_CHROMEDRIVER_EXECUTABLE;       - mv /tmp/chromedriver $DEVICEFARM_CHROMEDRIVER_EXECUTABLE;       - chmod +x $DEVICEFARM_CHROMEDRIVER_EXECUTABLE;Unfortunately when running with appium I get chrome not reachable. Using the stock chromedriver doesn't have this issue despite being the same version. ChromeDriver 2.38.552522 (437e6fbedfa8762dec75e2c5b3ddb86763dc9dcb)I did the same version to debug why chrome not reachable was being reported.Is there any guidance on how to update chromedriver?ThanksFollowComment


Question: How to Restrict Client machines to Ping EC2 Instances?

I want to allow only some Virtual machines to ping my EC2 Instance.FollowComment

Answer: "1You can control access to your instances by using Security Groups. By default, all traffic is denied; you must create inbound rules that allow traffic. For example, you will already have a rule that allows SSH (for Linux) or RDP (for Windows). To allow ICMP (for ping), create a rule that permits ICMP only from the hosts that you wish to ping your instances.Note that you don't have to create outbound rules for traffic that is allowed inbound. Security Groups are stateful; they automatically allow outbound traffic for inbound sessions that were allowed.CommentShareEXPERTBrettski-AWSanswered a year ago"


Question: Does Image Builder support build and test an image in a private VPC subnet without internet access?

"Hi I tried to setup an Image Builder Pipeline with a private subnet without internet connection in a VPC. It failed with failure message = 'Unable to bootstrap TOE'. I searched the AWS documentation and the TOE installation clearly needs a HTTPS connection to an internet address.Has anyone run image builder in a private subnet without internet access successfully here? I have enabled the "VPC network interface" so the instance in my VPC can communicate with Image builder, SSM, S3 and Cloudwatch in a private connection but not with AWS TOE installation HTTP URL. Thanks.FollowComment"

Answer: 0Accepted AnswerHTTP URL is essentially an S3 Bucket. So if you create an VPC Endpoint for S3 the connection to download the files should work .Below is an article that goes through the steps of creating VPC Endpoints for S3. You can skip the bucket policy stephttps://aws.amazon.com/premiumsupport/knowledge-center/s3-private-connection-no-authentication/CommentShareKarthik Rengasamyanswered a year ago0After I created an S3 bucket URI for that AWS TOE repo "arn:aws:s3:::ec2imagebuilder-toe-${AWS::Region}-prod/*" it works like a charm and Image Builder is able to bootstrap AWS TOE and proceed with its functions.  Thanks.CommentSharexianlin_hclanswered a year ago


Question: Unable to get AFI information from slot 0.

"Hello,I have a problem when I try to run an example on F1.I am running this example:https://github.com/aws/aws-fpga/blob/master/hdk/docs/IPI_GUI_Examples.md#ipitutI have done all the vivado stuff, and created the .tar file without a problem.I have put it on a s3 bucket, and i have created the AFI using create-fpga-image.I got the ImageID and ImageGlobalId.I have then loaded the local image to slot 0 and the output of fpga-describe-local-image -S 0 -H says that the image with the correct agfi is loaded. It gives me the VendorId and the DeviceId.As per instructions in the example from the link above, I did the folowing:cp -r aws-fpga/hdk/common/shell_stable/hlx/hlx_examples/build/IPI/hello_world/software .changed the deviceId in software/test_cl.c to the correct valuemake allsudo ./test_clAnd I get the following error:2019-08-13T14:39:08.238901Z, undefined, ERROR, test_cl.c +217: check_afi_ready(): Unable to get AFI information from slot 0. Are you running as root?2019-08-13T14:39:08.239046Z, undefined, ERROR, test_cl.c +67: main(): AFI not readyIt is as if the function fpga_mgmt_describe_local_image(slot_id, &info,0) can't access to the data it needs.What can I do to solve this problem?Thank you in advance.Edited by: oglamocanin on Aug 13, 2019 8:41 AMFollowComment"

Answer: "0Can you please reply with which FPGA Developer AMI you are using and which version of the HDK? You can find the AMI by selecting the instance in the EC2 console and looking at the description. You can find the HDK version in the RELEASE_NOTES.md file in your clone of the aws-fpga repo.CommentShareAWS-User-8182321answered 4 years ago0Hello,I am using the following AMI:FPGA Developer AMI - 1.6.0And the HDK version is the one i cloned from git yesterday, so it is the following:Release 1.4.10.Thanks in advance.CommentShareoglamocaninanswered 4 years ago0Thanks for reporting this. This is a bug in test_cl.c. This will be fixed in the next release and we will add tests to ensure that this works in the future. To fix the bug, please add the following 2 lines at line 58:    /* initialize the fpga_mgmt library */    rc = fpga_mgmt_init();The modified code should look like:int main(int argc, char **argv) {    int rc;    int slot_id;    /* initialize the fpga_mgmt library */    rc = fpga_mgmt_init();    /* initialize the fpga_pci library so we could have access to FPGA PCIe from this applications */    rc = fpga_pci_init();    fail_on(rc, out, "Unable to initialize the fpga_pci library");Then rerunmake all; sudo ./test_clThe output should look like:$ sudo ./test_clAFI PCI  Vendor ID: 0x1d0f, Device ID 0xf000===== Hello World Example =====Writing for VLED (0xAAAA) with BAR1-AXI GPIOUse the following command to get the VLED value after running the software# sudo fpga-get-virtual-led  -S 0FPGA slot id 0 have the following Virtual LED:1010-1010-1010-1010Writing to AXI BRAM with ASCIIReading ASCII from AXI BRAMHello World!CommentShareAWS-User-8182321answered 4 years ago0Thanks, this fixed the issue.CommentShareoglamocaninanswered 4 years ago"


Question: Upload Excel spreadsheets to S3 via Office JS

"I have an Excel add-on which provides stock price in Excel for users. I want to allow users to save template spreadsheet to reuse later if they choose to. Since my website is hosted on EC2, I plan to upload those template spreadsheets on S3 as well. Is there any doc which has instructions to do this? ThanksFollowComment"

Answer: 0This blog shows you how you can upload files to S3 from a web application - https://aws.amazon.com/blogs/compute/uploading-to-amazon-s3-directly-from-a-web-or-mobile-application/CommentShareEXPERTIndranil Banerjee AWSanswered 9 months ago


Question: Instance reachability check failed

"I can't log onto my ec2 instance. It's been over 24 hours. Can anyone help? I have code and data on the instance that I don't want to risk getting erased. I even tried filing a support case but no response over 24 hours, and I didn't even get an email confirmation. What is going on?FollowComment"

Answer: 0edit: asked elsewhere and resolved now!CommentShareJason123123answered 2 years ago