Question: HOrrible Performance +work around

"@REDACTEDUSERMy current scene is 90% terrain, with camera setup for player through input manager & scrupt canvas, along with TOD and sun positin, lastly with GI lighting, thats about it-not sure how much of a perf HIT it is but its 4096 x 1 and 25bit terrain.I pointed editor camera away from terrain center alot of scultping has gone on, and where there is nothing but water ( how does on stop water from being visible, even if I uncheck it, its sill there ), and I open input manager to add camera rotation/speed, and it takes a whole minute to load just that interface, and another minute to close it..THen once I rotated back to middle of terrain I had lost mouse moving, and hitting escape made no difference.Either this is putting LY in a not best light as far as performance problems or I"ve got some setting way off.I do not have a huge ocean going on in ue4 but short of that my performance doesn't degrade at all no matter what I do there, so I"m scratching my head there.If its just a 'beta'thing, I"ll exist quietly and wait for a more stable release.Any ideas appreciated but I can't take much more of this instability- I"m losing time and energy.I guess I could it being my entire fault IF I had a dual core or something, and while my rig is not the tops, its no slouch @REDACTEDUSERTY!Follow"

Answer: "0I'll give that a whirl, making it much smaller would be better, as I kinda need it there for my world creation process.Are there plans if it can't atm, to make it more modular so you use what you need ? I can make lakes unending and a ocean or two in ue4,,,it sure helps with frames.TYSharerePost-User-2755327answered 5 years ago0I didn't want to EDIT my other post and have it missed so I"m just adding a new one;Thereis no 'remove ocean' in 1.15, dunno when it was still there but its gone.If so I think thats a real mistake, as the ocean is HUGE and I have no idea how well its LOD'd the further away you get,,I think forcing a ocean always on is really bad design, why was that decided on or too late to fix in 1.15 ?Anyway its not there, was this on purpose ?Maybe a 'warning' about some of these things was in order, and maybe if you had made oceans 'placeable' instead of the whole giant thing forced, then as in UE4, here in LY the frames would be nearly on par.Yes one can lower down to mobile ( never doing that , but ty poster), low is not on my radar , but I did try itI'm really sorry to keep bringing unrealengine into this, as I know the two engines are different,and LY IS IN BETA, I"ve stated that I get that, many times.I had 'no idea' going into this how much that seems to matter.When I use 'auto' in ue4 it chooses HI settings, not cinematic but high , hence my surprise as one would imagine.We should have been warned about these things, unless there are 'notes' about such things in some release notes,just point me to it and I"ll have a peek.IF, I could have 'removed ocean', that would be a drastic improvement, I"m rather sure. I"d think about going back to 1.14 I guess but thats a backwards direction now.tySharerePost-User-2755327answered 5 years ago0@REDACTEDUSERDo you know at what point during your creation process the performance went south? That could really help me to help you! Can you explain to me what you mean by a 25bit terrain? I think you mean you are using a 24bit image for the heightmap.Does your performance tank when looking at the terrain only? After making modifications to the terrain texture layers, make certain to also Generate Terrain Texture Layers.I have not experienced the issues that you have been describing lately. So, its possible it is something on your machine, or something that you changed in Lumberyard? Is it possible for you to upgrade to 16GB of ram?Lastly, are you running any antivirus software in the background? That might affect your performance.Can you make a video of the issue?SharerePost-User-2521121answered 5 years ago0I don't even have a ocean but unable to turn it on. I upgraded to new version today. And cannot find ocean button or roll up bar.REMOVEDUPLOADSharerePost-User-7620461answered 5 years ago0All I"m doing when it gets horrible laggy, is trying to edit Jack's ( player slice) inputmanger stuff, so I can get rotation more 'stable' on playerslice, where atm its very non stable,,rotating mouse in game during play and its too difficult to keep entire scene steady if you will..best way I can explain it.24 bit yes sorry LOLSomeone else here, or was that you, helped me make sure to look away from terrain while generating terrain texture, and that did help alot yes, so that problem was solved.Only anti-virus is Microsofts out of box stuff but I think it only runs when computer is 'idle',which I'm not when running LY.I have no access to more ram, but I'd look at getting more, IF I knew what the bottleneck was.I realize this is beta, most of it works just fine, but these little things like this are causing great frustration .As I asked, is it not possible to turn the ocean OFF, I suspect that could be some of it,BUT I sincerely doubt it,,With the terrain and water and GI all on, I can get around scene with zero issues.the only thing so far in keeping with subject of this post, is the Going into inputmanager which is child of playerslice, and clicking on lua editor ( looks like joystick) and tryng to open the input file for Jack to try and get the mouse smoother on rotation ( on rotation during play, the player is basically fine, but as I rotate with mouse the terrain goes by far too fast and unstable to 'choose where I want to go, etc.Btw for now I"m not worried about that as I could likely fix that in Jack's input file via lua editor,,,its getting TO Jack's lua editor to edit it..getting TO the file takes a entire minute just to load a VERY simple lua file ( all text, nothing complicated as you know) and once I see the UI come up, I try to open and that takes at least another minute to get to that point, and yesterday, as I noted, it crashed entirely taking down LY with it.I could do a video but its going to make getting TO the lua file harder with the video grab running in the background.SharerePost-User-2755327answered 5 years ago0You can turn the ocean off. And it helps with some frames. Tutorial Here.https://www.youtube.com/watch?v=dW0Kt_-iSL4SharerePost-User-7620461answered 5 years ago0Also for some reason I have this issue when ever i edit a lua script and save it. Then go back to the editor. It gives me some issues. If I don't either restart lumberyard or wait about 20 minutes. The script is not updated or behaves in a weird way in functionality in play mode or in editor. Like dose not function properly on random scripts. Sometimes it just drops the frames to zero in the editor then crashes. Or messes with the entity component system properties. Where I can add edit or do anything with it. My fix to thats was to restart lumberyard every time i edited a script and everything went fine.SharerePost-User-7620461answered 5 years ago0There is another way to lower frames I use when editing my level when i'm using Designer tool. If you go to Edit/Editor Settings/Graphics Performance << and choose a lower platform like mobile, or low pc it boosts the fps.SharerePost-User-7620461answered 5 years ago0OMG I can't believe I missed it- I"M not used to seeing 'outliner' inleft view, as the months I"ve used a different engine its on far right..in any event you can't remove ocean,but you can turn it OFF in the viewport, by going to outliner,again on the far left, and clicking on what looks like white outline of a small eye, and the ocean goes awayor at least hides so the frames here went roughly 8 or so higher,,for now I"m just going to leave it off while I do other things,,work around it.HOpe that helps you, let me know.I'm staying on middle PC perf. see how it goes, given using LOW doesn't have any effect on window 'sliders' ( expand outliner for example to right), as they are still extremely sluggish to move..in LY defense it is still in beta, and I suspect that the 'UI" is far from optimized , given above facts.SharerePost-User-2755327answered 5 years ago0HI Steve, lowering to low is prob. saving a few frames, but I'm not seeing much help for editing lua , still giving , not responding frequently, although so far at least its not crashing...I hope some answers are forth coming about why oceans is forced on,surprising that I was sent a youtube url to remove it, but gone in 1.15. Seems many changes are up in the air or people aren't talking to each other ;)SharerePost-User-2755327answered 5 years ago0@REDACTEDUSERtry switching to mobile platform. Way faster then switch back when you build.SharerePost-User-7620461answered 5 years ago0I don't think they work on the weekends. So maby tommorow.SharerePost-User-7620461answered 5 years ago0Interesting Steve, ty so much for trying to help with my woes :)I'm not convinced given current answers that aren't even correct, but its beta to be expected on some level, if not very disappointing.TY for taking the time to help out !SharerePost-User-2755327answered 5 years ago0Not sure if this is related, but I get some weird results if I don't have total illumination enabled. My framerate goes up close to 200, then everything gets choppy and unplayable(seems like it would have the opposite effect if framerates are increasing).SharerePost-User-0404587answered 5 years ago0Hello @REDACTEDUSERYou can definitely remove the ocean. Please first enable the Water Gem. You will need to do a quick build of Lumberyard since this Gem contains code. Once this Gem is built, open up your level. You will notice that your ocean is now gone.When enabled, the Water Gem turns the ocean into a Component Entity. If you want to bring the ocean back, simply follow these steps:Right-click in your sceneCreate entityAdd the component Infinite OceanHere is the documentation that you asked for:https://docs.aws.amazon.com/lumberyard/latest/userguide/component-infinite-ocean.htmlHave a good weekend!SharerePost-User-2521121answered 5 years ago0Wow , ya those indeed aren't what one would expect- maybe like with games & hardware we are seeing something similar here, but I'd not expect that necessarily.TY for input maybe devs can post here and clue us in.SharerePost-User-2755327answered 5 years ago0@REDACTEDUSERWe're in day two, are the current available devs who are tasked with forums strained I wonder..have you heard anything ?I have no idea how many 'curren't questions there are and I"m too busy to look, but I wonder, if we don't use @REDACTEDUSERSharerePost-User-2755327answered 5 years ago0Very disappointed, I was hoping for any bit of information about why so many are seeing performance problems..had to uninstall and it will stay that way until we see some reasons- I was low on ssd space anyway but not hearing made my decision easier..we all get its beta, but some answers are more important than others.SharerePost-User-2755327answered 5 years ago0@REDACTEDUSERor anyone else..Now many times does someone have to practically beg, to get an answer around here on important , performant issues ? Its not just me asking. THere is no excuse, for a 'company' who wants to be taken seriously to have such huge flaws in performance.If somebody would have the decency to at least come here and say ya, its a bug, its beta- we'd be OK fine, work around it.Dev's cant' expect people to willingly deal with , a wonderful engine, with such horrific flaws.Did my best to be patient , but this is nonsense.Other engines do similar things, ue4 does, but two wrongs do not make a right.I uninstalled LY a week or so ago and I can't allow myself to touch it until I know the status of this,possible performance issue, that many of us are experiencing...unity works great, ue4 is amazing, so LY , beta or not, should too. I"d be fine, most would, IF we just had something said, about this topic. Silence is unacceptable and unfair.SharerePost-User-2755327answered 5 years ago0I'm with ya... I really like the direction the engine is going on design and workflow, but feel like the effort to get and keep the average user's interest or confidence in lumberyard is dwindling. I'm starting to think I may be wasting my time here. I know there has to be tons of content generated while designing the engine that could easily be utilized for demonstration purposes, but wall we get is vague descriptions from the manual in most cases. So..Not feeling too confident...but hopefully that will change in the future. I'm not too crazy about the other engines workflows, but damn they are active all the time.SharerePost-User-0404587answered 5 years ago0Since you responded and I appreciate a heavy load on a relatively new engine, I"ll reinstall now. I uninstalled not sure what I was getting into with empty replies , with so many having issues with sluggish behavior.As huntsberger, I too am sorry I feel this way as LY is so worthy, but as noted, my , yes humble system ( but its all I have, atm, working on a nice upgrade ), runs 4 terrains in world comp mode in ue4 and I never skip a beat in performance. That may change as all I have are a few meshes and terrain,but very complex terrain ( artist so..heh).UE4 doesnt' really have great lighting as atm there really is no, current , worked on ( as I'm told on forum) GI. Shocking isn't it, so as Huntsberger is saying, with what LY has, GI INTACT and beautiful, -you are missing a golden opportunity.Need more answers and better manual.I grasp for clarity, and I know no man or company or organization can afford ALL , necessarily, but gosh Amazon I assume has a billlionare behind it so I"m a tad speechless why you guys are struggling to answer questions .Enough of that, I don't enjoy it.I will reinstall,,give me a day or two I"ll have answers.Nvidia for now I have: I just installed latest driver for my GTX card ( *I DO wish,yes, it had much more onboard ;ram but I must save up for a beefier rig first) so it is:399.07-desktop-win10-64bit-international-whql-rpI"m pretty sure my card is only using DX11. I know it supports 12.1, 12.0 etc, but is 12 out ?Once reinstalled I"ll get what you need.TY for getting back to us, I was beginning to wonder but glad you are still here.SharerePost-User-2755327answered 5 years ago0Hey @REDACTEDUSERMuch apologies for the delays in response to the troubles, and the experience of sheer frustration with this topic — The team is looking into causes to fix and areas to improve on, and to help resolve your troubles, would it be possible to grab some editor logs from ya? (Please and thanks!)I also saw that in your original post, you had mentioned the specs of your current build — i5-3570 Procesor (Ivy Bridge), Nvidia GTX 950 (2GB) with 8GB RAM.Few questions for us to investigate further on this:What Nvidia driver are you currently running?What version of DirectX do you have installed on your machine?When running Lumberyard, is your Graphics Card maxing out it's memory?Again, sorry for the troubles and we hope to get this resolved for the community ASAP :)// Cheers!SharerePost-User-5738838answered 5 years ago0I have a suggestion...just hire one or two people whos sole jobs are to generate content examples, tutorials for youtube, and answer our really simple over thought out questions. I search almost every day for little tidbits of info on this engine....mostly coming up empty. I scour github looking for lua examples that would help me understand things that are not explained in the hastily written manuals. Where this engine stands right now, compared to the others, could be dominating developer channels on youtube...but it is dismal. sorry...SharerePost-User-0404587answered 5 years ago0Thanks @REDACTEDUSERSharerePost-User-5738838answered 5 years ago0Ok, reinstalled- so I loaded my current working level , all seemed fine, so going through motions I realized something I"d missed bc I'm not used to these things coming from UE4 ( maybe bc , atm, I don't have a 'ocean' in UE4 so we'll see when I do what happens to FPS though I have a few small lakes) :The UI window dragging where terrain editor, inspector is and asset browser, that the dragging is def. alot smoother when I"m facing away from water, just as for altering texture, which is fixed as noted upon regenerating texture.I"m not used to such atm, but I can't complain much I know as we are in Beta, and as noted above with no 'ocean' in UE4 I have no perfect frame of reference.So for now anyway that is solved which was a big one for me.I"ll play more and see if opening inputmanager window is greatly increased long as I look away from window.Having said all of that, its not going to be something people will enjoy if they have to be remembering to look away from fps hungry visuals just to work :)One last thing:I get this error after saving , but it comes AFTER the line that saves saved successfully,,:Level successfully savedReturned: true(AssetCatalog) - Registering asset "levels/essence_outpost_bird_tower9_kc/tags.txt" via AssetSystem message, but type is not set.(AssetCatalog) - Registering asset "levels/essence_outpost_bird_tower9_kc/bird_tower_incrediblelighting.xml" via AssetSystem message, but type is not set.(AssetCatalog) - Registering asset "levels/essence_outpost_bird_tower9_kc/essence.xml" via AssetSystem message, but type is not set.(AssetCatalog) - Registering asset "levels/essence_outpost_bird_tower9_kc/filelist.xml" via AssetSystem message, but type is not set.(AssetCatalog) - Registering asset "levels/essence_outpost_bird_tower9_kc/essence_outpost_bird_tower9_kc.xml" via AssetSystem message, but type is not set.(AssetCatalog) - Registering asset "levels/essence_outpost_bird_tower9_kc/tags.json" via AssetSystem message, but type is not set.(AssetCatalog) - Registering asset "levels/essence_outpost_bird_tower9_kc/terraintexture.pak" via AssetSystem message, but type is not set.(AssetCatalog) - AssetRemoved: path=levels/essence_outpost_bird_tower9_kc/essence_outpost_bird_tower9_kc.dds id={567E8609-CABD-5E7B-A2DB-EC51B2B23628}:0general.save_levelSaving to Levels/Essence_outpost_bird_tower9_kc/Essence_outpost_bird_tower9_kc.ly...(Editor) - Saving level backup to 'C:/Amazon/Lumberyard/1.15.0.0/dev/StarterGame/Levels/Essence_outpost_bird_tower9_kc/_savebackup/2018-08-31 [10.52.17]/'...[Warning] Attempting to save backup to C:/Amazon/Lumberyard/1.15.0.0/dev/StarterGame/Levels/Essence_outpost_bird_tower9_kc/_savebackup/2018-08-31 [10.52.17]/ before saving, but could not write all files.I have no idea what to make of it as I was not getting that error before- and /or should I make a new thread out of that error , wasn't sure so I just put it here for now.thxSharerePost-User-2755327answered 5 years ago0Hey @REDACTEDUSERThanks for sharing your observations and logs -- super happy to see the big obstacles dissolving on this issue! :DI've added this note for our devs to dig into further, and get improvements made for upcoming releases. Also, let me poke around some more and see if there are other things that can be done to help propel performance in the mean time :)Thanks again for being patient and awesome!SharerePost-User-5738838answered 5 years ago0Alrighty, @REDACTEDUSERSharerePost-User-5738838answered 5 years ago0HI ty so much AL for reply,I don't know what you mean by re-export textures,,,export to what , I'm not following you here..I"m using built in textures,,,HM or did you mean re-generate textures, and then export to engine ?SharerePost-User-2755327answered 5 years ago0The latter :)Re-gen textures and then export to engine —SharerePost-User-5738838answered 5 years ago0HI sorry got busy, so I"m getting these errors now doing regen tex's, no idea what they mean:REMOVEDUPLOADSharerePost-User-2755327answered 5 years ago"


Question: Giving Away Free Test Exams and 50% Off Coupons

"So it looks like this is prohibited practice per the Pearson checkout window.Vouchers/Promotion Codes are intended for use solely by the individual to whom they were awarded or assigned. Where applicable, Vouchers/Promotion Codes may only be used with the AWS Certification account to which they were assigned. If AWS, in its sole discretion, determines you misused a Voucher/Promotion Code, AWS may invalidate the exam result related to the misuse and the benefit will not be reinstated.We tend to have a certification meeting at our place of work and the more senior personnel would like to hand out their 50% off and test exams but now we're concerned this could cause someone's account be invalidated.Can we get some guidance on this? Is it safe to hand out our earned benefits to get others certified?FollowComment"

Answer: "0Accepted AnswerLazaroHerrera,It is against AWS Certification policies to give benefits vouchers or any other vouchers to another person. AWS monitors voucher usage and if it is determined that a voucher was given to a candidate other than who it was originally assigned to, the result tied to the used voucher may be invalidated. Please note the language on the Benefits page of the AWS Certification Portal in addition to the text you included seen on the payment screen at Pearson VUE and PSI: "All benefits are non-transferable and intended for use solely by the individual who earned the benefit and by the AWS Certification account to which the benefit was originally assigned. If AWS, in its sole discretion, determines you misused or transferred a benefit, AWS may invalidate the exam result related to the misuse or transfer and the benefit will not be reinstated."If you have any additional questions, please do not hesitate to ask!KimAWS CertificationCommentShareKimWD-AWSanswered 2 years ago0I appreciate the honest answer, but AWS certification should rethink this particular policy.CommentShareLazaroHerreraanswered 2 years ago0Hi. Can I get a discount coupon for the exam if I register for a FREE online reInvent event?https://pages.awscloud.com/GLOBAL-event-GC-reInvent-certification-vouchers-terms-and-conditions-2022.htmlCommentSharegoldanswered 7 months ago"


Question: Code 2 Error - Trying to install Greengrass Core on Raspberry 4B via device setup script

"Everything works fine until the reboot of the raspberry. When restarting the script as instructed under #4 (see https://docs.aws.amazon.com/greengrass/v1/developerguide/quick-start.html) it runs into the following error:/* last log lines before error*/[GreengrassDeviceSetup] Validating the device environment...[GreengrassDeviceSetup] Validation of the device environment is complete.[GreengrassDeviceSetup] Running the Greengrass environment setup.../* ERROR */Code 2, Message: GreengrassDeviceSetup cannot continue: Greengrass containers are not supported on this platform.So far solution approaches:Unfortunately the troubleshooting advice (https://docs.aws.amazon.com/greengrass/v1/developerguide/quick-start.html) does not help either. The log files do not show any errors but end abruptly.I double-checked the platform with "lscpu" which says "armv7l"I also checked the Linux version with cat /etc/os-release to be "Raspbian GNU/Linux 11 (bullseye)"In several tryouts the Raspi has been flashed with the Full-Desktop-Raspberry OS and alternatively the Lite version without success. I even ran the whole script not only in sudo but in root-user mode.Any help and ideas are highly appreciated.All the best.FollowCommentMassimilianoAWS EXPERTa year agoCan you please confirm that you are installing Greengrass v1 and not v2? Unless you have a valid reason to use v1, I would suggest to use Greengrass v2 (https://docs.aws.amazon.com/greengrass/v2/developerguide/getting-started.html)Share"


Question: GStreamer in Docker

"I am trying to set up Kinesis video streaming using AWS Docket containers and following the documentation given below.https://docs.aws.amazon.com/kinesisvideostreams/latest/dg/examples-gstreamer-plugin.html#examples-gstreamer-plugin-docker-downloadAfter following all the steps in the above documentation, I am getting the 'gst-launch-1.0: command not found' error.To support video streaming from a PC webcam, do I need to install GStreamer plugins in Docker?If its yes can please share documentation for the GStreamer plugins setup in DockerFollowComment"

Answer: "0Accepted AnswerHello'gst-launch-1.0: command not found' errorThis usually caused by the GStreamer (with the Kinesis Video Streams Producer SDK element as a sink in a Docker container) not setup correctly.After you have installed docker on your laptop( using MacOS) as example here:1.1  Authenticate your Docker Clientaws ecr get-login-password --region us-west-2 | docker login -u AWS --password-stdin https://546150905175.dkr.ecr.us-west-2.amazonaws.com1.2 Download the Docker Image for macOSsudo docker pull 546150905175.dkr.ecr.us-west-2.amazonaws.com/kinesis-video-producer-sdk-cpp-amazon-linux:latest1.3 Run the Docker Image on macOSsudo docker run -it --network="host" 546150905175.dkr.ecr.us-west-2.amazonaws.com/kinesis-video-producer-sdk-cpp-amazon-linux /bin/bashDocker launches the container, and presents you with a command prompt for executing commands within the container.In the container, set the environment variables using the following command:1.3.1 export LD_LIBRARY_PATH=/opt/awssdk/amazon-kinesis-video-streams-producer-sdk-cpp/kinesis-video-native-build/downloads/local/lib:$LD_LIBRARY_PATH1.3.2 export PATH=/opt/awssdk/amazon-kinesis-video-streams-producer-sdk-cpp/kinesis-video-native-build/downloads/local/bin:$PATH1.3.3 export GST_PLUGIN_PATH=/opt/awssdk/amazon-kinesis-video-streams-producer-sdk-cpp/kinesis-video-native-build/downloads/local/lib:$GST_PLUGIN_PATHif above steps all successful, you should be prompted bash-4.2#(example only)able to run gst-launch-1.0 commandFor example:bash-4.2# gst-inspect-1.0 kvssinkFactory Details:Rank                     primary + 10 (266)Long-name                KVS SinkKlass                    Sink/Video/NetworkDescription              GStreamer AWS KVS pluginAuthor                   AWS KVS kinesis-video-support@amazon.comPlugin Details:Name                     kvssinkDescription              GStreamer AWS KVS pluginFilename                 /opt/amazon-kinesis-video-streams-producer-sdk-cpp/build/libgstkvssink.soVersion                  1.0License                  ProprietarySource module            kvssinkpackageBinary package           GStreamerOrigin URL               http://gstreamer.net/Regarding the second question:2. To support video streaming from a PC webcam, do I need to install GStreamer plugins in Docker?If its yes can please share documentation for the GStreamer plugins setup in DockerThere are multiple options,you can either use the Producer libraries to build your own app.https://docs.aws.amazon.com/kinesisvideostreams/latest/dg/producer-sdk.htmlOr you can use the GStreamer, The Kinesis Video Streams GStreamer plugin greatly simplifies the integration of your existing GStreamer media pipeline with Kinesis Video Streams. for this solution,  yes,  GStreamer plugins is necessary.you can follow this GitHub Doc for more information:https://github.com/awslabs/amazon-kinesis-video-streams-producer-sdk-cpp/blob/master/docs/linux.md#running-the-gst-launch-10-command-to-start-streaming-both-audio-and-video-in-raspberry-pi-and-ubuntuhttps://github.com/awslabs/amazon-kinesis-video-streams-producer-sdk-cpp/blob/master/docs/macos.md#running-the-gst-launch-10-command-to-start-streaming-both-audio-and-raw-video-in-mac-osCommentShareAWS-User-6819265answered a year agoAWS-User-2931278 a year agoThanks for your informationShareAWS-User-2931278 a year agoWhen I run the below command I am getting the expectation. I want to stream video from PC webcam.sudo docker run -it --network="host" --device=/dev/video0 546150905175.dkr.ecr.us-west-2.amazonaws.com/kinesis-video-producer-sdk-cpp-amazon-linux /bin/bashError:-docker: Error response from daemon: error gathering device information while adding custom device "/dev/video0": no such file or directory.ERRO[0000] error waiting for container: context canceledShare"


Question: One or multiple adapters to read from different topics is good or bad and what is recommended

"Hi AWS,The Apache Kafka Adapter connects to the Apache Kafka distributed publish-subscribe messaging system allows for the publishing and consumption of messages from a Kafka topic.Is it a good or a bad practice and what is recommended.FollowComment"


Question: Make object that upload by account-b role public in account-a bucket

"Hi allI have tried to upload my objects with Account-B role (NOT user) to a public bucket in Account-A, but the objects aren't public. I want to make them public or has the same access as the bucketFollowing are my attempts:Create bucket MyPublicBucket in Account-A, and set its policy:{    "Version": "2012-10-17",    "Id": "Policy1484633382620",    "Statement": [        {            "Sid": "Stmt1",            "Effect": "Allow",            "Principal": "*",            "Action": "s3:GetObject",            "Resource": "arn:aws-cn:s3:::MyPublicBucket/*"        },        {            "Sid": "Stmt2",            "Effect": "Allow",            "Principal": {                "AWS": "arn:aws-cn:iam::AccountB-ID:role/MyPutObjectRole"            },            "Action": "s3:PutObject",            "Resource": "arn:aws-cn:s3:::MyPublicBucket/*"        }    ]}I associated the MyPutObjectRole with my ec2 in Account-B and call "aws s3 cp --recursive dist s3://MyPublicBucket/" in this ec2. The objects are uploaded successfully but owned by Account-B which cannot be public access.Following the doc ( https://docs.aws.amazon.com/AmazonS3/latest/dev/amazon-s3-policy-keys.html#grant-putobject-conditionally-1 ), I added:"Condition": {                "StringEquals": {                    "s3:x-amz-grant-full-control": "id=AccountA-CanonicalUserID"                }            }and call "aws s3 cp --recursive dist s3://MyPublicBucket/ --grants full=id=AccountA-CanonicalUserID"but it returns "An error occurred (InvalidToken) when calling the PutObject operation: The provided token is malformed or otherwise invalid."I tried s3api like "aws s3api put-object --bucket MyPublicBucket --key 1.txt --body 1.txt --grant-full-control id=AccountA-CanonicalUserID" but it returns the same InvalidToken error.I suppose I have to provide "--profile " when using grants but as I am using a role NOT a user, I got no profileIn a word, my question is how to make my Account-B ec2 can upload public object to Account-A public bucket.FollowComment"

Answer: "0Accepted AnswerHelloyou could do something likemake all uploaded files publicaws s3 sync . s3://my-bucket/path --acl public-readthe cp command also allows the use of the --acl and it may use other values like public-read-write or bucket-owner-full-controlaws s3 cp s3://mybucket/test.txt s3://mybucket/test2.txt --acl public-read-writehttps://docs.aws.amazon.com/cli/latest/userguide/cli-services-s3-commands.htmlhttps://docs.aws.amazon.com/cli/latest/reference/s3/cp.html#exampleshope this helpsRTCommentSharerttanswered 4 years ago0Thanks, I found I missed AWS_DEFAULT_REGION=cn-north-1, that made it returns Invalid TokenI solved my problem by:1 Added AWS_DEFAULT_REGION before run my command2 Allowed S3:PubObjectAcl to my role:{            "Sid": "Stmt2",            "Effect": "Allow",            "Principal": {                "AWS": "arn:aws-cn:iam::AccountB-ID:role/MyPutObjectRole"            },            "Action": ["s3:PutObject","s3:PutObjectAcl"],            "Resource": "arn:aws-cn:s3:::MyPublicBucket/*" }3 use:aws s3 cp xxx.txt s3://myPublicBucket --acl public-readCommentSharedxsanswered 4 years ago"


Question: Template error: instance of Fn::GetAtt references undefined resource LambdaExecutionRole

"Hi everyone,I'm trying to deploy in amplify and I got this error.CloudFormation::Stack Template error: instance of Fn::GetAtt references undefined resource LambdaExecutionRoleI tried to redeploy the last working version, but still, I encounter the same error. Here is the code for the outputs of my CloudFormation template."Outputs": {        "Name": {            "Value": {                "Ref": "LambdaFunction"            }        },        "Arn": {            "Value": {"Fn::GetAtt": ["LambdaFunction", "Arn"]}        },        "Region": {            "Value": {                "Ref": "AWS::Region"            }        },        "LambdaExecutionRole": {            "Value": "arn:aws:iam::xxxxxxxx:role/xxx"        }            }I appreciate in advance if anyone could help me with this matter.FollowCommentjhashimoto 4 months agoThe template is fragmented, and I’m unsure what caused the error. Therefore, could you please include the entire template in the question text.Share"

Answer: "0Without seeing the whole template I can't be sure. But it looks like you are using Fn::GetAtt to reference LambdaExecutionRole which is an "Output"  and not a "Resource" and that's not supported. If you search for {"Fn::GetAtt": ["LambdaExecutionRole" within your template, you should find the section in the Resource block that is causing your error.Output is intended to be used by "things outside" the stack, not from within the template itself.I hope this helped!CommentShareCarl Ostrandanswered 4 months ago"


Question: Building FTPS server using Transfer family

"Hello, I was trying to build FTPS server using Transfer family, But I couldn't able to successfully build one. Could some one explain in details how to build one in detail.I tried browsing online for guidance all I could find is for building SFTP server. I need help in building "custom identity provider" using rest API and lambda function. I couldn't find the code for the lambda function.FollowComment"

Answer: "0If you go here, Working with custom identity providers, under Default Lambda Functions, there are some examples embedded in the CloudFormation templates.CommentShareEXPERTkentradanswered 2 months agoEXPERTalatechreviewed 2 months ago"


Question: Remember device to suppress MFA challenge using Cognito Hosted UI

"We are currently using the Cognito Hosted UI for the authentication of our web application. For extra security we've set MFA enabled with a TOTP code. For convenience we'd like to ask our users if they want to remember their device (device tracking). However, it seems not possible to setup device tracking when users sign in using the Hosted UI. Is this true and how can we make the device tracking work, do we need to create a Custom UI?FollowComment"

Answer: "0Device tracking is only supported when using the SDK  with USER_SRP authentication i.e. Custom UI. This isn't available via the hosted UI currently.Thanks.CommentShareRajarshi_Danswered 10 months agoSteef Burghouts 10 months agoThanks, is this something that is on the roadmap or is it unlikely that this feature will be implemented?ShareRajarshi_D 10 months agoIt is probably the latter but things might change. Please consider accepting this answer if it has helped you. ThanksShare"


Question: Cannot create new project

When creating a new project it comes to Build project and then comes up with Error executing WAF. (see log for details). The error inside the log isTarget platform "win_x64_vs2015" not supported. [on host platform: win32]Please help me get around that.Thank you.Follow

Answer: "0@REDACTEDUSERSharerePost-User-5780922answered 5 years ago0Hi @REDACTEDUSERHere's a related post:https://forums.awsgametech.com/t/cant-create-new-project-waf-error/4458/1SharerePost-User-4556816answered 5 years ago02019 version 1.22 and the problem is still not solved. I am trying to solve it myself by researching and it takes the focus from game development to "engine fixing".Update: 22/12/2019The issue was resolved the problem appearantly is in the dev/WAF/user_settings.optionsThis line was commented;win_vs2017_vswhere_args = -version [15,16]Just remove the simicolon in front of the line to make it bewin_vs2017_vswhere_args = -version [15,16]However the build time took ages on an i7 7700K overclocked to 4.7GHZ I will test the building time on a Dual Xeon system we have at work and post the results back.SharerePost-User-0901465answered 3 years ago"


Question: Getting 502 Bad Gateway for vitalticks.in web sitae

"Hi, We are facing an issue with the website vitalticks.in502 bad gateway error message.when we checked in target groups the health status is mentioned as unhealthy (Health status details:- Health checks failed).Kindly help how to resolve the issue.Thnak you.FollowComment"

Answer: "1I don't know your detailed environment, but the following official AWS documentation may be helpful.[1] Troubleshoot your Application Load Balancers - Elastic Load Balancinghttps://docs.aws.amazon.com/elasticloadbalancing/latest/application/load-balancer-troubleshooting.html#http-502-issues[2] Troubleshoot Application Load Balancer HTTP 502 errorshttps://aws.amazon.com/premiumsupport/knowledge-center/elb-alb-troubleshoot-502-errors/?nc1=h_lsPlease refer to the above for troubleshooting.CommentSharemn87answered 8 months agoEXPERTChris_Greviewed 8 months ago"


Question: 0 1 How to set permission on Volume mount

"In my CDK app I have an ElasticSearch docker that starts on an EC2 instance and on start up it cannot write to the host path's Volume mount point directory which I set to /mnt/data/elasticsearch/ so the container stops,The reason is the permissions on the directory when the instance is starts is 755. When I SSH into the instance and change it to 777 the container starts up and continues on without issue.This is how I create the volume and mount point import software.amazon.awscdk.services.ecs.Volume     auto_scaling_groupp.addUserData("sudo chmod -R 777  /usr/share/elasticsearch/data);` // This has no effect      Volume hostVolume =  Volume.builder().name("elasticsearch").host(Host.builder()                           .sourcePath(/mnt/data/elasticsearch).build()).build();     MountPoint elasticSrvrMntPt = MountPoint.builder().readOnly(false).sourceVolume(hostVolume.getName())                  .containerPath("/usr/share/elasticsearch/data").build();    ElasticDef.addMountPoints(elasticSrvrMntPt);  I cannot find in the API how to either give permission to that container or change the permission on the folderThanksEdited by: sdiventura on Apr 9, 2021 2:16 PMFollowComment"

Answer: "0The reason is because I was using a bind mounts to mount at container, By default, the volume permissions are set to 0755 and the owner as root. The permissions would need be changed in the Elastic Dockerfile. Instead I used Volume to mount the host dirhttps://docs.aws.amazon.com/AmazonECS/latest/developerguide/bind-mounts.htmlCommentSharesdiventuraanswered 2 years ago"


Question: What is the cost of container image storage?

I deploy many times a day to Lightsail via CI/CD. My container ends up accumulating a lot of old images which I will never use again. Also the UI for deleting old images requires deleting them one by one which means deleting them is really painful.So I want to know what happens if I don't delete these redundant images? Does AWS charge me for the storage? should I be deleting them?FollowComment

Answer: "1You can see your actual daily costs by going to the console and choosing cost management service and selecting cost explorer and then choosing current month and daily in the drop downs and group by usage type to view the costs being charged per use type. You would be able to understand the breakdown of different services costs here.CommentShareMadhav_Panswered a year ago0Lifecycle Policies in ECR will allow you to make rules that automatically expire your older images and reduce storage costs. For example, this policy will expire any images that are older than 14 days.The storage pricing for ECR is $0.10 per GB / month for data stored in private or public repositories. Continuing to add images to your repository without cleaning old images up will increase your storage costs. There is also a cost for data transferred out of the repository.Usually when you are building and pushing an image multiple times a day only the top layer changes. If the intermediate layers are not changed the storage is not duplicated in ECR. When pushing an image you may see a 'Layer already exists' message which indicates the repository is reusing storage for a layer since it has not changed.CommentShareNoah_Lanswered a year agoamersaw 7 months agoYou mentioned that "If the intermediate layers are not changed the storage is not duplicated in ECR", I couldn't find that in any documentation (at least in the ECR pricing page), could you please refer me to anyShare"


Question: Is it possible to create a Public Graphql end point using AWS AppSync?

Is it possible to create a Public Graphql end point using AWS AppSync?Can I consume the end point in a web app not deployed on AWS?FollowComment

Answer: "1Hi, @singhyes. AppSync is a public endpoint. You can access it from anywhere via the Internet.On the contrary, it is difficult to limit to private access.CommentShareEXPERTiwasaanswered a year agoEduardo a year agoJust to add my 2 cents, you can restrict for private access integrating with AWS WAF and restricting to the IPs of the company.Shareiwasa EXPERTa year ago@Eduardo. Thank you for the supplement.My expression was not good.You can limit it with WAF, but communication will flow through the public network.It was referring to the ability to integrate into a private network like a VPC.Share"


Question: Are partitions advantageous for groupby operations in Glue jobs?

"I have a table with columns A, B, C, D, ..., where A is a partition key. In a Glue job I want to group records of this table by column A. Is there a way to make the glue workers aware of the partitions in A, such that workers do not have to process dataframes created from different partitions in order to speed up the processing time?FollowComment"

Answer: "0Yes, The way to do this is with a pushdown predicate. When reading a dynamic frame, you would use the field push_down_predicate.https://docs.aws.amazon.com/glue/latest/dg/aws-glue-programming-etl-partitions.html#aws-glue-programming-etl-partitions-pushdownshttps://aws.amazon.com/premiumsupport/knowledge-center/glue-job-specific-s3-partition/CommentSharejb-poanswered a year agoThomas Mueller a year agoIn my case, the table has maybe in the order of 1e9 lines which can be grouped into around 1e6 groups. Do I understand it right, that I should then start 1e6 Glue jobs for each partition/group in parallel and perform the selection push_down_predicate? This does not sound practical to me, as I assume that it would be better to effieciently use Glue's internal parallelisation.Sharejb-po a year agoYeah sorry, I haven't run tests on the scaling of the number of partitions so high with low data, but my assumption is that it scales and using partitions is better since the query you would be making to s3 is using presto to optimize the data grabbed and how it is grabbed with the partitions organization.This might help.https://docs.aws.amazon.com/emr/latest/ReleaseGuide/emr-presto-s3select.htmlShare"


Question: RDS Snapshot Chain - Automatic Backups Vs Manual Snapshots

"Hello,If an RDS customer is using both Automatic Backups and Manual Snapshots as part of their protection strategy of an RDS Instance - does each snapshot type for an RDS Database have a separate initial full backup (i.e. one full for automatic and one full for manual) ?It would also be helpful to know if any subsequent Manual RDS snapshots (in between daily automatic backups) are incremental from the last automatic or the last manual snapshot.Our docs don't talk about the relationship of backup chains in regards to automatic vs manual on RDS - so this will be helpful information to have.Thanks!FollowComment"

Answer: "0Accepted AnswerAny snapshot created , be it manual or automated is incremental , as it will work in the following way:When the snapshot process starts, it will check if the current underlying storage volume has a previous snapshot, to calculate the difference, the blocks that has been modified, and it will backup only the ones that changed since the previous snapshotSo it does not matter whether it is manual or automatedThe only exception is any event where the underlying storage may have changed, like A Multi AZ Failover, a Multi AZ to Single AZ change, or some storage modificationsIn that case the next snapshot will be a full oneHowever, Unlike automated backups, manual snapshots aren't subject to the backup retention period.i.e. Snapshots don't expire. So although they are incremental during creationg, they would be sufficient by itself to restore the database until the point of snapshot.https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/USER_CreateSnapshot.htmlCommentShareHarish_AWSanswered 3 years ago"


Question: Availability of vulnerability testing using EC2

"Is there any problem with AWS security policy to install Nessus on EC2 and vulnerability check to another account's AWS EC2 or external server outside of AWS?According to the penetration testing policy published by AWS, it is not a problem to test EC2, so I feel that using AWS resources for testing should not be a problem, but....FollowComment"

Answer: 1Please read the Penetration Testing policy document - it explains what can and can't be done; and when permission is required.CommentShareEXPERTBrettski-AWSanswered 5 months ago


Question: Cannot launch Vitis HLS Gui mode with FPGA Developer AMI 1.10.0

"Hi.I was trying to launch Vitis HLS GUI with FPGA Deveoper AMI 1.10.0.I did "git clone https://github.com/aws/aws-fpga.git $AWS_FPGA_REPO_DIR",and then "cd $AWS_FPGA_REPO_DIR" and then "source vitis_setup.sh"and then "source /opt/Xilinx/Vitis_HLS/2020.2/settings64.sh"but when I launch "vitis_hls", I get message:=================================****** Vitis HLS - High-Level Synthesis from C, C++ and OpenCL v2020.2 (64-bit)**** SW Build 3064766 on Wed Nov 18 09:12:47 MST 2020**** IP Build 3064653 on Wed Nov 18 14:17:31 MST 2020** Copyright 1986-2020 Xilinx, Inc. All Rights Reserved.source /opt/Xilinx/Vitis_HLS/2020.2/scripts/vitis_hls/hls.tcl -notraceINFO: [HLS 200-10] Running '/opt/Xilinx/Vitis_HLS/2020.2/bin/unwrapped/lnx64.o/vitis_hls'INFO: [HLS 200-10] For user 'centos' on host 'ip-xxx-xx-xx-xx.ap-northeast-2.compute.internal' (Linux_x86_64 version 3.10.0-1160.6.1.el7.x86_64) on Tue Jul 13 06:47:43 UTC 2021INFO: [HLS 200-10] On os "CentOS Linux release 7.9.2009 (Core)"INFO: [HLS 200-10] In directory '/home/centos'INFO: [HLS 200-10] Bringing up Vitis HLS GUI ...INFO: [Common 17-206] Exiting vitis_hls at Tue Jul 13 06:47:48 2021...So, pretty much no information on why it is not launching.I can launch xeyes, so I don't think it is X problem.If there additional dependencies I should install for Vitis HLS GUI, could anyone tell me the list?FollowComment"

Answer: "0Hi,To make sure this is not an application issue, I went through the GUI setup steps here: https://github.com/aws/aws-fpga/blob/master/developer_resources/DCV.mdI was able to launch vitis_hls with the 1.10.0 Dev AMI after that with the DCV Viewer to view/access the desktop.In your case, Are you trying to forward X? If so, can you check if access control for X is set to allow connections on your client?To do that, run:xhost +If that doesn't work, could you try the DCV steps as that should work.-DeepCommentShareDeep_Panswered 2 years ago0Thanks so much for the reply. I will definitely try DCV later if X doesn't work out for me.So how I solve the problem is that since "vitis_hls" doesn't give any helpful message, I instead tried to run "vitis" GUI version - which did give out useful information.I just followed the error message and installed the missing dependencies - the last one being sudo yum install webkitgtk3 (sorry, didn't document everything..). Then was able to launch vitis.What's interesting is that after configuring "vitis", "vitis_hls" also launches correctly  - so problem solved.Moving on, could I request two things from the FPGA Developer AMI team?Would it be possible to automatically install missing dependency for GUI version as well in "vitis_setup.sh" and "Vitis_HLS/2020.2/settings64.sh"? Would be so much helpful for novice users like me :)Could you make vitis_hls to generate an error log like vitis? Currently, it is too difficult to debug vitis_hls problem without any hints on what's going on.Thanks!-YoungCommentShareYoungChoianswered 2 years ago0Hi Young,That is very good feedback. I will add the Vitis HLS setup part as an AI for us to improve on and provide feedback to Xilinx on the Vitis HLS error handling.On the GUI front, we validate and suggest using DCV as it is provided and supported by AWS. Other methods can break in the Centos repository due to a package update/dependency issue. That is one big reason why we may not be able to bake in support for other methods.Thanks!-DeepCommentShareDeep_Panswered 2 years ago0Thanks for the explanation.I looked at DCV in the link you provided, but it says it is free only up to 15 days.I am trying to get my students to use it, so any additional cost is too burdensome. I will see if I can get it working on X, and switch to DCV if there are too many problems.CommentShareYoungChoianswered 2 years ago0Hi Young,A clarification on DCV: DCV is free for use on EC2. You can setup your instances to allow access to S3 buckets like shown here: https://docs.aws.amazon.com/dcv/latest/adminguide/setting-up-license.html#setting-up-license-ec2-DeepCommentShareDeep_Panswered 2 years ago0Thanks. I found that DCV has much less latency than GUI version, and decided to use that flow.CommentShareYoungChoianswered 2 years ago"


Question: Connection To GameLift Service WebSocket Has Failed

I am running into an issue when I call InitSDK while using the GameliftServerSDK in Unreal Engine 5. I believe that I am passing the wrong thing into the ServerParameters but documentation is scarce besides that to initialize it you should pass in null values. The first screenshot below is called on begin play when loading into the server entry level. the second screenshot includes the InitSDK internals. After running the code from that it gives the following error "Warning: Failed To Initialize Gamelift Server SDK: Connection to the GameLift Service WebSocket has failed"FollowComment

Answer: 0Accepted AnswerThis post answer solved my issue: https://repost.aws/questions/QULK96HZb-TgqpUJtplWGqsg/initsdk-timeout-using-gamelift-sdk-5CommentShareTristan Fishanswered 11 days ago


Question: "I am getting null response for the CloudWatch Metrics API (ListMetrics, GetMetricData, GetDashboard) while executing the API from Lambda function (Python) and Postman also."

"I was following this document,https://docs.aws.amazon.com/iot/latest/developerguide/connect-iot-lorawan-network-analyzer-request-sample.htmlAble to generate the signature but when trying to execute any CloudWatch metric api I am getting  200 as response code and null response even though the metric and dashboard data is there.Is there any other way to get the metric data from cloudwatch or any other more detailed document which can be referred for API execution?FollowCommentRaphael EXPERT2 months agoCan you post your boto3 snippet?Share"

Answer: "0If getting a null response, please ensure you are calling the CloudWatch APIs in the correct region in which the metrics and dashboards exist. As well, ListMetrics should return a list of available metrics without needing to specify any specific parameters, but GetMetricData and GetDashboard will return null results if incorrect parameters such as metric dimension values, metric name, or dashboard name are not passed correctly.As well, for further details, you can find the following documentation for a CloudWatch boto3 example, and the full CloudWatch boto3 documentation below:Getting metrics from Amazon CloudWatchCloudWatch Boto3 documentationCommentShareSUPPORT ENGINEERJustin_Banswered 2 months agorePost-User-0363890 a month agoYes I was executing the API in the same region only. Will check for other parameter values as well. Thankyou.Share"


Question: AWS Pinpoint/SNS: Two-way SMS unsubscribe/resubscribe implementation

"I'm facing some issues while implementing Two-way SMS unsubscribe/resubscribe using AWS Pinpoint and SNS.Use Case:After collecting the user's number, he gets a confirmation SMS. He replies with the YES keyword to opt into the SMS list. He may later opt out by replying with the STOP keyword. After opting out, he still has the option to resubscribe by replying with the START keyword. Furthermore, even after resubscribing, he has an option to unsubscribe again by replying with the STOP keyword, and so on.Current Implementation:Similar to the example given in the documentation (https://docs.aws.amazon.com/pinpoint/latest/developerguide/tutorials-two-way-sms.html), I have a lambda function subscribed to the SNS topic which handles the YES and START keywords. Responses to STOP (and HELP) keyword(s) are handled by AWS Pinpoint.After collecting the user's number, the backend creates a pinpoint endpoint for the user's number, sends him the confirmation SMS, and updates the endpoint opt-out status to ALL.User replies with YES, his reply is handled by the lambda which updates the endpoint opt-out status to NONE.User replies with STOP, his reply is handled by pinpoint, which automatically opts him out.User replies with START, his reply is handled by the lambda which updates the endpoint opt-out status to NONE.I need help with the following queries:In step 3 of the above implementation, I've noticed that the user's number gets added to the SNS opt-out list (as checked from AWS Console), but his pinpoint endpoint opt-out status (as checked from aws-cli) is still set to NONE instead of ALL. As expected, I am unable to send SMS to this user. Are there two separate opt-out statuses maintained for pinpoint and SNS as I've observed? If yes, is there in-depth documentation regarding how they get updated?In step 4 of the above implementation, I've noticed that the user's number does NOT get removed from the SNS opt-out list and his pinpoint endpoint opt-out status remains NONE. Unlike the expected behavior, I am still unable to send SMS to this user. Am I doing the resubscribe implementation correctly?Please answer the queries and guide me on the correct implementation of my use-case.FollowComment"

Answer: "1Accepted AnswerAfter further exploration, here's what I found-ObservationsIf not using pinpoint and the user's number is shown in the SNS opt-out list, messages sent via SNS publish message will not get delivered.Irrespective of whether using pinpoint or not, incoming SMS from the user always pass through SNS and are checked for the opt-out keywords like STOP, END, CANCEL, etc. (https://docs.aws.amazon.com/pinpoint/latest/userguide/channels-sms-manage.html). If an opt-out keyword is found, the number is always added to the SNS opt-out list. (Further reading- https://docs.aws.amazon.com/sns/latest/dg/sms_manage.html)If the 'Self-managed opt-outs' option for the pinpoint long code is disabled and the user's number is shown in the SNS opt-out list,3.1. A new pinpoint endpoint cannot be created for that number.3.2. Messages sent via existing pinpoint endpoint for that number will not get delivered.3.3. Messages sent via SNS publish message will not get delivered.If the 'Self-managed opt-outs' option for the pinpoint long code is enabled and the user's number is shown in the SNS opt-out list,4.1. The previous points 3.1. and 3.2. still hold true.4.2. Messages sent via SNS publish message will get delivered because of the enabled 'Self-managed opt-outs' despite the number being added to SNS opt-out list.Cause of the problemIn my case 'Self-managed opt-outs' option was disabled, which is why pinpoint endpoint opt-out status was irrelevant and SNS opt-out list was taking precedence.SolutionAs can be seen above, keeping 'Self-managed opt-outs' disabled did not satisfy my requirements. So I enabled it.Pinpoint endpoints could not be used because the SNS opt-out list would always take precedence.Finally, I'm just using pinpoint for getting the long code with two-way SMS and 'Self-managed opt-outs' enabled. I'm using SNS publish message to send the messages instead of the pinpoint endpoint.Now that I'm using 'Self-managed opt-outs', one important thing to note here is- I'm maintaining the opt-out status for each user's number on my backend and handling the outgoing message delivery allow/deny at the middleware level.CommentSharesagar-ohanswered 2 years ago0Thank you.CommentSharesagar-bsanswered 2 years ago"


Question: Maximising multi-instance and multi-GPU utilisation

"Hi,I've been trying to distribute the MNIST example across instances and GPUs with SageMaker Tensorflow, but I'm not seeing the kind of benefit that I was hoping for. I'm not sure whether I'm just setting the job up incorrectly or whether this example is just not suited to distribution and was wondering if anyone has any ideas which it might be please?I'm using TensorFlow 1.9 because I think MPI/Horovod doesn't work with 1.12 which I was using originally?In my test I get these results with a batch size of 512:1 Instance 1 GPU   13.5 global_step/sec2 Instance 1 GPU    7.3 global_step/sec1 Instance 8 GPU   18.8 global_step/secIf I reduce the batch size I get lower overall throughput, and see little benefit when increasing beyond 512.My job specification looks as below and mnist.py is the file which comes with the examples, though I changed batch_size=100 to batch_size=512 in the script:estimator = TensorFlow(entry_point='mnist.py',                  role=role,                  framework_version='1.9.0',                  training_steps=1250,                   evaluation_steps=10,                  train_max_run=5*60,                      output_path=output_location,                  checkpoint_path=output_location,                  code_location=output_location,                  model_dir=output_location,                  train_instance_count=1,                  train_instance_type='ml.p3.16xlarge',                  base_job_name='PerformanceTest-p3-16xlarge-1-instance',                  distributions={                    'mpi': {                      'enabled': True,                      'processes_per_host': 8,                      'custom_mpi_options': '--NCCL_DEBUG INFO'                    }                  })What I was hoping to see was a single 8-GPU instance hitting global_step/sec of 70.2-97.2. Based on 8x the global_step/sec of a single instance, scaled with 60-90% efficiency. Any help or clarification on this would be greatly appreciated!Thanks,CarlFollowComment"

Answer: "0Hi,Sorry that we are not clear in the doc.MPI/Horovod support is only available since 1.12 in script mode. So according to your codes, if you use 1.9, then the mpi related parameter doesn't work. We will add version check in the codes.So my recommendation for your test is,You need to use 1.12 as explained above.MNIST may not be a good example for performance testing. It's pretty small.CommentShareAWS-User-5094961answered 4 years ago0Thanks for the reply. I'll try to rerun the experiment, I'll also try with a different network.Cheers,CarlCommentShareCM123answered 4 years ago"


Question: Semantic Segmentation - Imbalance dataset

Is there any parameter within the standard semantic segmentation estimator that a user can provide weights for the objects or use any other loss function like Dice loss?FollowComment

Answer: "0Hello,Semantic Segmentation currently does not support it out of the box. However, I am happy to open up a feature request on your behalf to provide customers a way to use custom metrics such as custom loss function, or being able to adjust weights if needed. Additionally, I would like to inform you that you can bring your own model and customise it according to your use-case.Regardless, we would like to thank you for making your needs known to us. You are making AWS better for all of our customers.Hope this helps!References:[1] https://docs.aws.amazon.com/sagemaker/latest/dg/semantic-segmentation.html[2] https://sagemaker-examples.readthedocs.io/en/latest/introduction_to_amazon_algorithms/semantic_segmentation_pascalvoc/semantic_segmentation_pascalvoc.htmlCommentShareReshmaanswered 4 months ago"


Question: cloud9 lightsail create-instance fails

No matter what name i use i get this error:An error occurred (InvalidInputException) when calling the CreateInstances operation: Some names are already in use:FollowComment

Answer: "0Hi st0utLightsail throws this exception"InvalidInputException " when user input does not conform to the validation rules of an input field.Domain and distribution APIs are only available in the N. Virginia (us-east-1) AWS Region. I recommend you to set your AWS Region configuration to us-east-1 to create, view, or edit these resources.please consider raising a ticket with  AWS Support[1] for further assistance with this issue.Reference links[1] AWS Support -https://aws.amazon.com/contact-us/CommentSharestevenanswered a year agost0ut a year agoI was following the create the LAMP example.   What i found is that when i create the keypair the name is added I am unable to create the instance.   If i delete the keypair the i can create the instance albeit I can then not create a key pair using aws lightsail cliShare"


Question: Change Elastic Beanstalk ALB from internal to public internet-facing?

"Hi,I have an EB stack which initially deploys to UAT internally and so has an internal load balancer (YAML: "LoadBalancerScheme: internal"). For production deployment, we simply change stage variables called by the YAML, so it updates the EB with production values. This works fine with classic ELB. But with ALB (ELBv2), it fails with:The following target groups cannot be associated with more than one load balancerIs it not possible to change an existing EB environment from internal to public load balancer of the same type? If not, any good workarounds without deploying a completely separate environment (which is what I've been doing)?ThanksFollowComment"

Answer: "0Accepted AnswerHey there,You mention that you are trying to change an Elastic Beanstalk ALB from internal to public internet-facing.With that being said unfortunately it is not possible to change the Application Load Balancer from an internal Load Balancer to a public Load Balancer. The only way it can be changed is by creating a new Application Load Balancer to replace the current ALB. Since you created your environment with Elastic Beanstalk you will also need to create a new environment with the same app code but with a public ALB. Using Elastic Beanstalk helps avoid downtime.To minimise downtime or to get no downtime in changing from an internal to public load balancer, you may use of blue-green deployments [1]. In order to use blue-green deployments you will have to create a new environment with the configuration you want , in your use case using an internet facing load balancer. When the environment is done deploying, you can perform testing to make sure that the environment is working as expected. Once this is done, you can simply swap the URL of the two environments by choosing the option in the 'Actions' tab in the new environment.References:[1] https://docs.aws.amazon.com/elasticbeanstalk/latest/dg/using-features.CNAMESwap.htmlCommentShareAntonioanswered a year agotd-djkdjkdjk a year agoThanks, I figured that was the case, since I've never been able to get around it. Pretty ridiculous limitation that EB as an orchestration tool can't simply replace the ALB with another ALB without a whole new environment, which is why I figured I'd ask, in case I was missing a workaround. So I guess I'll stick with blue/green as usual.Share"


Question: "AWS step function giving error, when I had included the "Parameter" tag"

"I am trying to run the below step function code. It gives the error as "An error occurred while executing the state 'MyTestState' (entered at the event id #2). Invalid path '$.testonly' : No results for path: $['testonly']"My Input: {      "testonly":"srin"   }Step function definition Code:{  "Comment":"Testing the Step function",  "StartAt":"MyTestState",  "States": {    "MyTestState": {      "Type":"Pass",       "Parameters": {       "key1":"value1"      },      "OutputPath":"$.testonly",      "Next":"SecondState"     },    "SecondState": {      "Type":"Pass",       "End":true    }  }}But if i remove the Parameters tag in the above code, it is giving me the right output as "srin".Not sure, why I am getting this issue with "Parameters" tag. Can you please let me know, if am missing anything here. ?FollowComment"

Answer: "0As this is a Pass state, the result of the state is what you defined in the Parameters attribute. In your case it only includes "key1". OutputPath is used to filter the output, i.e., to define what from the output will be sent to the next state. As the output does not include the "testonly" attribute, you are getting the error.What exactly are you trying to do?CommentShareEXPERTUrianswered a year ago"


Question: Lake formation blueprint job error :org.postgresql.util.PSQLException: ERROR: permission denied for table tmp_

I received below error in one of Blueprint jobs :An error occurred while calling o452.getDynamicFrame. ERROR: permission denied for table tmp_companyI found below errors in the error log of the job:py4j.protocol.Py4JJavaError: An error occurred while calling o452.getDynamicFrame.org.postgresql.util.PSQLException: ERROR: permission denied for table tmp_companyI already granted super permission to the lake formation role on the lake formation database!also lake formation admin user has all sufficient permissions!!The error in one job only and the other jobs finished successfully!!Any clue??FollowComment


Question: Glue job keeps running but does not write results

Running a glue job to fetch records from Microsoft sql server  but glue jobs keeps running and does not show any results. Job is scheduled with G.2X worker with 5 works with auto scheduling.Logs:- 23/02/27 09:02:45 WARN TaskSchedulerImpl: Initial job has not accepted any resources; check your cluster UI to ensure that workers are registered and have sufficient resourcesFollowComment

Answer: "2Can check the worker nodes to ensure that they have enough resources to run the job. The warning message in the logs suggests that the worker nodes may not have enough resources to execute the job.CommentShareTasadduq Burneyanswered 3 months ago0The driver logs should tell you bit what the driver is doing, the warning could not be the cause.It would be good to enable SparkUI logs and view then in a History Server to check what the driver is doing, has the driver started a Spark job/stage and doesn't get resources?The most likely cause is that you have multiple stages in the job and the first stage is reading the data with a single task, SparkUI will tell you that.Also check this: https://docs.aws.amazon.com/glue/latest/dg/run-jdbc-parallel-read-job.htmlCommentShareGonzalo Herrerosanswered 3 months ago"


Question: Appsync HTTP resolver supported content types

"Hi, I'm trying to write an Appsync http resolver mapping template to do a bulk upload to an Elastic Search index using this api: https://www.elastic.co/guide/en/elasticsearch/reference/current/docs-bulk.htmlThis api expects content type "application/x-ndjson". However, appsync is giving me an error "unsupported content type application/x-ndjson". It appears "application/json" and "application/xml" are supported by appsync, but not sure if any others areIs the list of supported content types for HTTP resolvers published somewhere? Is there any way I can get around this restriction? I just want the body to be passed through as a string. I don't need it to be parsed or serialized... not sure why the http resolver apparently has a whitelist of acceptable content types.Thanks, cheersEdited by: Michael J. Fogel on Dec 9, 2019 8:46 AMEdited by: Michael J. Fogel on Dec 9, 2019 9:22 AMFollowComment"

Answer: 1The valid subtypes for the application content type are listed here:https://docs.aws.amazon.com/appsync/latest/devguide/resolver-mapping-template-reference-http.html#params-fieldI made a code change to allow x-ndjson as well and that should be reflected in a couple of weeks as soon as it gets deployed.CommentShareAWS-User-0691748answered 3 years ago


Question: How can I speed up queries?

"Hi, I just finished migrating a huge dataset to Timestream and I'm having a problem with query time slowing down dramatically as the table size grew.During beta testing everything worked fine. Queries were maybe a bit slower than i would have like, at around 2-3 seconds.However now that we have multiple terabytes of data in the table, queries are very slow at around 7-9 seconds. Those 7-9 seconds eventually go down to around 2 seconds if I keep running the same query. I assume this is because of caching and warming up of resources.I'm saving the DeviceId as a dimension, and a number from 1-255 as the measure name.I'm using both of these as predicates, as well as a time range, some other dimensions and a NOT NULL check on the value.SELECT measure_name, value_double, time, DeviceId, DimensionA, DimensionBWHERE DeviceId = 'xxxxxxx'AND measure_name = '112'AND time BETWEEN TIMESTAMP '2022-06-01 00:00:00' AND TIMESTAMP '2022-06-07 00:00:00'AND value_double IS NOT NULLAND DimensionA = '0'AND DimensionB = '1'ORDER BY time DESCLIMIT 1000000000I'm only being metered for the data I need, so I Timestream shouldn't be scanning unnecessary data.Yet it seems like Timestream is bad at pruning data quickly, because every query spends a significant amount of time loading the first page, while every following page is retrieved almost immediately.Do you have any idea how I can speed this up?We migrated to Timestream from Azure Table Storage, where the queries were virtually instant, and we might have to drop Timestream altogether after months of development because of the query latency.FollowComment"

Answer: "0HiThank you for bringing this up with us, I wonder whether it is possible for you to create a support case with us and let me know the support case number. I can reach to the service team and help investigating further.As to investigate in details, service team will require account number, table name, query id information which we can not communicate publicly.Looking forward hearing from you.CommentShareSUPPORT ENGINEERKevin_Zanswered a year ago"


Question: can i improve SMS sending rate without apply long codes and sender ID

"Currently, the account can send SMS to Philippine users, and the sender of the SMS is displayed as notice (we did not apply for long code and sender ID).Now only 20 messages can be sent per second, when the TPS is increased, the frequency of sending service prompts is too high.Can i increase the request rate for this service without us currently applying for long codes and sender IDs?If not, what needs to be done?Thanks！FollowComment"


Question: Looking for Players which supports - Program and  polling the tracking URL periodically

As per https://docs.aws.amazon.com/mediatailor/latest/ug/ad-reporting-client-side.htmlNeed a player which can be programmed to poll the tracking URL PeriodicallyI am not aware of such players which can run Manifest as well as it can poll URLFollowComment

Answer: "0If a customer chooses client side tracking this will necessitate custom development for each device/OS platform supported.The following blog outlines a Web example using Video.JS player which could be adapted to implement tracking polling also.https://aws.amazon.com/blogs/media/playing-your-ads-featured-content-with-aws-elemental-mediatailor-and-videojs/?sc_channel=sm&sc_campaign=Media_Blog&sc_publisher=TWITTER&sc_country=Elemental&sc_geo=GLOBAL&sc_outcome=awareness&trk=Media_Blog_TWITTER&linkId=101569000CommentSharedamianzmanswered a year agoShriprasad-AWS-User-0357084 a year agoThank you damianzm for your input. I went through the blog. Its really helping in understanding integrating video with Video.js Player. But, Can you point to some documentation where I can get more details around polling functionality support?ShareShriprasad-AWS-User-0357084 a year agodamianzm, When I seen your demo at 5th minute I was getting dfp ad. But in your VMAP your are having https://d2qohgpffhaffh.cloudfront.net/Ads/AD-robots-15.mp4 this ad. Can you tell me how DFP ad is stitched ?In your blog you are referring to, which containshttps://171f6efea34043088c4d6017e788915a.mediatailor.eu-west-1.amazonaws.com/v1/master/17c705d483d32a0dc3058c7390c4e299d563b47c/episode3/playlist.m3u8Here http://gbatt-automads-player-prod.s3-website-eu-west-1.amazonaws.comI can see this url in source -https://7e04360aac7c46288e0fa830d3747bd2.mediatailor.eu-west-1.amazonaws.com/v1/master/17c705d483d32a0dc3058c7390c4e299d563b47c/black-692a39c1-5825-40e1-a190-15bdaf140eae/playlist.m3u8Share"


Question: RDS Blue/Green deployment on a very large Database seems too long

"Hello,We are trying to use the new RDS Blue/Green Deployments feature to upgrade Aurora Mysql 5.6 to 5.7. We did some tests on a small DB (a few GiB) and everything worked fine.So we tried running a Blue/Green on a 3.6 TiB Database (with billions of rows), but it seems RDS can't create the Green instance, it's been on status Provisioning for 6 days now and we can't find any progress information, we guess things are "blocked".Should we wait longer ? Is there any limitation on the DB size to use Blue/Green deployment ?FollowComment"

Answer: "0It appears that you may have either deleted or revoked permissions to the KMS key for this cluster which is blocking the provisioning of the Blue Green Deployment.You might open a support case with AWS support to work through this error.thanks,CommentShareMODERATORphilawsanswered 6 months ago"


Question: Create Custom domain names - DNS record problem

"I am new in AWS. I try to create new Custom domain names. I got this error:One or more aliases specified for the distribution includes an incorrectly configured DNS record that points to another CloudFront distribution. You must update the DNS record to correct the problem. For more information, see https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/CNAMEs.html#alternate-domain-names-restrictions (Service: AmazonCloudFront; Status Code: 409; Error Code: CNAMEAlreadyExists; Request ID: ; Proxy: null)I checked the CloudFront Distributions. I did not find the custom domain name in distributions. My Route 53 Hosted zones is empty.FollowComment"

Answer: "1Accepted AnswerYou haven't mentioned where the domain that you added is hosted - but it's apparently not in Route53 since you mentioned you don't have any hosted zones. If you own the domain, you can query the name servers at the registrar. Once you have located the authoritative name servers for the domain, edit the zone file and remove any existing CNAME records pointing to CloudFront domain names.If you do not own the domain, contact the owner to request changes to DNS.CommentSharePaul_Lanswered 7 months agoAWS-User-9766125 7 months agoThanks for your comment. I find the CNAME in another AWS account.Share"


Question: X-Ray SDK for PHP

Is there any plan to support X-Ray subsegment creation for all AWS PHP SDK Calls?FollowComment

Answer: "0Hey! We know that there is a lot of customer interest for PHP but we haven't been able to prioritize work on it yet.However, the X-Ray team has been working hard to make the OpenTelemetry tracing project compatible with the AWS X-Ray service. OpenTelemetry is a feature-rich open source project that does many of the things that the X-Ray SDKs do.In fact, OpenTelemetry PHP has already began work to provide the IdsGenerator and Propagator needed to make OpenTelemetry traces that are compatible with X-Ray.If you are interested in using OpenTelemetry as an alternative and want to seee the project prioritized, you can open an issue on the AWS OTel Community repository to engage the developers working on OpenTelemetry. You can also follow or contribute to the OpenTelemetry PHP contrib repository itself.PHP support will most likely come to OpenTelemetry before it comes as a new X-Ray SDK.CommentShareaws-nathanielanswered a year agoMauro 9 months agoSorry for the delayed answer but I had to work on other stuffs before implement this. I've followed this suggestion and used OTEL to propagate php traces to xray but I didn't reach my goal.What I need to do is to trace all AWS SDK Calls, for example when I call SNS, SQS, EventBridge, etc through aws sdk for php. That sdk doesn't allow me to add the trace header, neither OTEL trace these calls (at least as I did in my implementation).Is there a solution that I can implement to check request/response to aws services done from aws php sdk?  (I do it with other languages already, for example nodejs)ShareDennisDK 4 months agoOh great, another project. Why not JUST SUPPORT XRAY? No sidecars, no new annoying tasks to add. Just something usable... Like... Oh I don't know... X-Ray?Share"


Question: EC2 under ALB can not access  internet

"I have a ALB with a ec2 inside, when my EC2 want to access outside world, for examplesend data to google api, failed.when I check ping to remote machine (domain) outside my infrastructure, it work. ( get the IP address of domain)I can not curl to a website outsie my network, to get 200 status.Security Group already set to allow all inbound and outbound. And I use internet facing  application load balancerBut my webserver in that machine running well. (port 80 and 443)Anyone have solution ?FollowComment"

Answer: "0Recomended setting is having inbound traffic from internet only on ALB, and have application on private subnet that for inbound should only allow traffic from ALB.   For your instance to connect to internet you would need a NAT gateway configured for its private subnet.   If EC2 is in public subnet, the Internet Gateway would work.To understand better actual problem, if on EC2 you curl to a internet site by IP, does it works? (you should make sure that site responds by IP).If you use dig or nslookup to resolve a hostname, does it works?Have you check that the instance route tables are ok for the IG or NatGateway?CommentShareromerogtanswered 7 months agoMSolehFajari 7 months agoHi thanks for your advice.I fix this problem by move subnet to public subnet. So EC2 unde ALB can access the internet.Shareromerogt 7 months agoThanks for the update. It is good to check security group for ec2 has no inbound rule for public access, for usual configuration it would only need inbound rule from ALB security group.Share0Hi,In case the EC2 instance is not able to access Internet, you can try to troubleshoot with the followings:1/ Make sure the outbound is allowed in the attached Security group.2/ Make sure the Network ACLs is allowed for outbound access.3/ Make sure the route table is configured properly for the subnets to NAT GW or Internet GW.For more troubleshooting guides, please see https://aws.amazon.com/tw/premiumsupport/knowledge-center/ec2-connect-internet-gateway/If your EC2 instance is not reachable from the ALB, specify the appropriate HTTP or HTTPS port and source IP CIDR in the ALB's security group.CommentSharejcvipanswered 7 months ago0This ec2 on ALB using ip private with internet-facing.I have few Fargate too here, but it's working well with ALB too. Both Fargate and ec2 ALB use the same Security Group, the same ACL and the same subnet.  It work.So my assumption that it should work with ALB/ec2 too.CommentShareMSolehFajarianswered 7 months ago"


Question: New AMI on t3 fails Opsworks launch

"I created a new AMI based on a t3 running the latest Amazon Linux 2.After creating a new instance in my Opsware stack that uses it, it's stuck in Booting for about 10 minutes before it fails.When I look in /var/log/aws/opsworks, I see that it failed with: downloader: [ERROR] File size test failed. HTTP/1.1 403 Forbidden url: https://opsworks-instance-assets-us-west-2.s3.amazonaws.com/packages/amazon/2/opsworks-agent-ruby-2.0.0-p481-1.x86_64.rpmAny ideas about what I did wrong? Did I miss a step for it to use the Opsworks agent? Thanks!FollowComment"


Question: Training XGboost error on SageMaker

"An error occurred (ValidationException) when calling the CreateTrainingJob operation: Access denied for repository: xgboost in registry ID: 602401143452. Please check if your ECR repository and image exist and role arn:aws:iam::866574816374:role/service-role/AmazonSageMaker-ExecutionRole-20230321T165519 has proper pull permissions for SageMaker: ecr:BatchCheckLayerAvailability, ecr:BatchGetImage, ecr:GetDownloadUrlForLayerCODE:https://samick-blog.s3.cn-north-1.amazonaws.com.cn/xgboost_model_training_and_deployment.ipynbcontainers = { 'ap-southeast-1': '602401143452.dkr.ecr.ap-southeast-1.amazonaws.com/xgboost:latest' }FollowComment"

Answer: 1check if SageMaker have the access to the S3 buckets where the input and output of the validation profiles was stored.CommentShareAWS-User-0484435answered 2 months ago


Question: Failed on the Athena

"FAILED: Execution Error, return code 1 from org.apache.hadoop.hive.ql.exec.DDLTask. AlreadyExistsException(message:Table clientes already exist)This query ran against the "default" database, unless qualified by the query. Please post the error message on our forum  or contact customer support  with Query Id: cb21f599-3072-4340-9fc3-866d107846a9FollowComment"

Answer: 0It seems from information provided that the request was rejected because it attempted to create a resource that already exists. Seems a table named "clientes"CommentShareEXPERTAWS-User-Nitinanswered 6 months ago


Question: Backfill argument not working in cli

"Hey I am currently extending our CI. Wanted to set Backfill to automatic via the cli but this throws me an error: "unknown options: --backfill-mode "AUTOMATIC" ". Did something change or is it documented wrongly?Here is my CLI command:` aws gamelift create-matchmaking-configuration --name "DEVELOPMENT-ONEVSZERO" --rule-set-name "DEVELOPMENT-ONEVSZERO" --game-session-queue-arns arn:******Also:aws gamelift create-matchmaking-configuration --generate-cli-skeletonDoesnt return anything backfill related:{                                                                            "Name": "",                                                              "Description": "",                                                       "GameSessionQueueArns": [                                                    ""                                                                   ],                                                                       "RequestTimeoutSeconds": 0,                                              "AcceptanceTimeoutSeconds": 0,                                           "AcceptanceRequired": true,                                              "RuleSetName": "",                                                       "NotificationTarget": "",                                                "AdditionalPlayerCount": 0,                                              "CustomEventData": "",                                                   "GameProperties": [                                                          {                                                                            "Key": "",                                                               "Value": ""                                                          }                                                                    ],                                                                       "GameSessionData": ""                                                } https://docs.aws.amazon.com/gamelift/latest/developerguide/match-create-configuration.htmlThanks,KrisFollowComment"

Answer: "0I just tried this locally and it worked -- perhaps you need to upgrade the version of the cli that you're using?Here's the version I have:% aws --versionaws-cli/1.16.263 Python/3.6.9 Linux/4.9.184-0.1.ac.235.83.329.metal1.x86_64 botocore/1.12.253CommentSharerePost-User-0985817answered 4 years ago0Ahh updating did do the trick:{     "Name": "",     "Description": "",     "GameSessionQueueArns": [         ""     ],     "RequestTimeoutSeconds": 0,     "AcceptanceTimeoutSeconds": 0,     "AcceptanceRequired": true,     "RuleSetName": "",     "NotificationTarget": "",     "AdditionalPlayerCount": 0,     "CustomEventData": "",     "GameProperties": [         {             "Key": "",             "Value": ""         }     ],     "GameSessionData": "",     "BackfillMode": "MANUAL" }Thanks!CommentSharerePost-User-9542626answered 4 years ago"


Question: Cant get WP Mail SMTP plugin to Wordpress Lightsail to work.

"Trying to configure WP Mail SMTP plugin to Wordpress Lightsail but no success. I guess the problem is the firewall. I'm using an "other" SMPT, not within AWS at port 25. . The SMTP is working. Is there some problem with port 25, or am i opening the port wrong?All i want to do is to have my server send a message when it wants/needs.FollowComment"

Answer: "1Hello and thank you for choosing Lightsail!As indicated in luis's answer, AWS does by default block traffic on port 25 initially. Lightsail instances have the same behavior and we have a guide to step you through the process: https://lightsail.aws.amazon.com/ls/docs/en_us/articles/amazon-lightsail-enabling-email-on-wordpressI hope this helps!DonleyCommentSharedonleyatawsanswered 8 months ago0AWS by default blocks the traffic on the port 25. Check-out this resource: https://aws.amazon.com/premiumsupport/knowledge-center/ec2-port-25-throttle/CommentShareluisanswered 8 months ago"


Question: CloudHSM connection from Lambda going stale

"I'm trying to use the CloudHSM JCE provider (SDK 5) from a Java lambda. The lambda is deployed using a docker image, which is built with the JCE provider dependencies, similar to what is outlined in this blog postWhen the lambda is deployed, the initial call succeeds, as do subsequent calls done with little delay. However, if there is a longer delay (> 3 minutes), the connection goes stale and the call fails. I understand that this is due to lambda purging inactive connections. However, the logs show that the CloudHSM provider is attempting to make keep-alive calls, which are failing:[cloudhsm_provider::common::keep_alive] Keep-alive failed for <HSM_IP>. Internal Error: Internal error occurred. Error: Failed to send request to the HSM. Failed to send request to the Server. Error: Failed to append unique_id to packet.Can someone help me understand why these keep-alive calls could be failing?Or if there is any work-around for resetting the connection manually?FollowCommentMarkusL 3 months agoIn which part of the Lambda execution lifecycle do you initiate the CloudHSM connectivity? See AWS documentation about execution lifecycle https://docs.aws.amazon.com/lambda/latest/dg/lambda-runtime-environment.htmlDoes it make any difference if you always initiate the connection in the "Invoke" phase?Sharepete-speth 3 months agoThe connection is initiated during the invoke phase. There is static code to add CloudHSM as a java.Security provider. The provider must only be added once or it will throw an exception. Adding the provider initializes the connection. The storage/management of this connection is handled by the CloudHSM JCE library. So once it's initialized, there's no interface for managing the connection.As far as I can tell, there's no way to initiate the connection once per invocation. It only happens once per execution environment. And once it goes stale, the calls will fail until there is a long enough delay that the execution environment shuts down.Share"


Question: Amazon Route53 Geolocation Routing Failover

"Hi guys!I consider using Route53 with Geolocation routing to redirect my users traffic to my application hosted in two different Regions (Singapore and Japan).The reason I use Geolocation is that I want to redirect my user traffic to their language. The app is Singapore region is English and the app host in Japan region is for Japanese. Route53 with Geolocation will redirect user from Japan to their local region. On the other hand, user from other countries will be redirected to Singapore region.I have a question that if the Singapore region is down, will users be redirected to Japan region automatically?FollowComment"

Answer: "0Accepted AnswerNo, it will not redirect traffic Japan region bcz, there is no failover configured in Geolocation routing by default. how for solving it you can follow Doc:  https://aws.amazon.com/premiumsupport/knowledge-center/route-53-active-passive-failover/CommentShareVISIanswered 10 months ago"


Question: AWS SCT for SQL  RDS

"Hi Team,I have done some Assessment reports for SQL server to RDS SQL Server and in reports everything is green but when iam connected to Target and applied the database to RDS SQL server, i am getting errors for indexes and constraints.but again, source and target syntax are sameReffar attachment.Can i ignore these errors because i am migrating SQL server to RDS SQL server, just i am assuming that no difference between this two for databases (maybe we can find some features not exists in RDS)FollowComment"

Answer: "1It's possible that the differences in the errors you're seeing between the source and target databases are related to differences in the database engines or versions. Even though SQL Server and RDS SQL Server are similar, there can still be slight differences in syntax or features that could cause errors during migration.I would recommend investigating each error individually to determine the cause and whether it can be safely ignored. In some cases, the errors may be related to differences in collation, data types, or other settings between the source and target databases.AWS Schema Conversion Tool (SCT) can help you identify and resolve issues related to database migration. You can use SCT to assess and convert your databases to the target format, and it can also provide recommendations for resolving issues and errors that are detected during the migration process.I would also recommend testing the migrated databases thoroughly to ensure that all data and functionality has been successfully transferred to the new environment.CommentSharehashanswered a month agoAWS-User-Sanjeev a month agoThanks Hash,I have created the database in RDS and 90% of the syntax was removed but one or two errors were there (XML datatypes) but, where I did the assessments for SQL server everything was in green(100% auto-converted)  but here I can see the errors. why this error or warning did not come in the assessment report?Please share if you have any datatypes which are not supported in was rds SQL server from SQL server.Share"


Question: How monitor AWS managed service

How can I do alive monitoring for AWS managed service(e.g. ALB/Route53/etc)?I want to detect when AWS managed service is down by email or telephone.FollowComment

Answer: "2Hi,You can use AWS Health Dashboard to monitor AWS services and you can also setup notifications.More information on AWS Health Dashboard you can find hereThe AWS Health Dashboard is the single place to learn about the availability and operations of AWS services. You can view the overall status of AWS services, and you can sign in to view personalized communications about your particular AWS account or organization. Your account view provides deeper visibility into resource issues, upcoming changes, and important notifications.CommentShareEXPERTTushar_Janswered a year ago"


Question: "Using AWS basic Station, found TX power to be 0.0dBm EIRP"

"After my test, the power of TX will be 12dBm, the lowest power of SX1301, Generally, transmission power is a parameter that is controlled by the LNS.I guess there is a server configuration problem or there is a problem with my configuration file, Am I missing something important?2022-06-22 01:57:17.532 [S2E:INFO] TX ::0 diid=39028 [ant#0] - on air: 925.7MHz 0.0dBm ant#0(0) DR10 SF10/BW500 frame=20309C905190DF9AD2E59C5E..DE87E47CCheck out this link for testing information: https://github.com/lorabasics/basicstation/issues/161Or is there any other relevant information I can continue to provide,station.conf{    /* If slaave-X.conf present this acts as default settings */    "SX1301_conf": {     /* Actual channel plan is controlled by server */"lorawan_public": true,      /* is default */        "clksrc": 1,     /* radio_1 provides clock to concentrator *//* path to the SPI device, un-comment if not specified on the command line e.g., RADIODEV=/dev/spidev0.0 */"device": "/dev/spidev1.0",  /* freq/enable provided by LNS - only HW specific settings listed here */"radio_0": {    "type": "SX1257",    "rssi_offset": -166.0,    "tx_enable": true,    "antenna_gain": 0},"radio_1": {    "type": "SX1257",    "rssi_offset": -166.0,    "tx_enable": false}/* chan_multiSF_X, chan_Lora_std, chan_FSK provided by LNS */    },    "station_conf": {"routerid":"a84041ffff1eeb34",        "radio_init": "rinit.sh",        "RADIO_INIT_WAIT": "5s",        "RX_POLL_INTV": "10ms",        "TC_TIMEOUT": "360s",        "log_file":  "stderr",        "log_level": "DEBUG",  /* XDEBUG,DEBUG,VERBOSE,INFO,NOTICE,WARNING,ERROR,CRITICAL */        "log_size":  10000000,        "log_rotate":  3,        "CUPS_RESYNC_INTV": "1s"    }}FollowComment"

Answer: "0Hi. Thanks a lot for calling this out. AWS IoT Core for LoRaWAN does not currently offer the user a way to set the maximum transmit power of the gateway. Therefore, the router_config message should not be setting max_eirp to zero. I will post a comment here when this has been addressed.CommentShareEXPERTGreg_Banswered a year agorePost-User-6322046 a year agoYes, TX Power max_EIRP is zero,This affects the distance between the gateway downlink instruction and the node,I have tested that after 600 meters, the node cannot receive downlink from the gateway,ShareGreg_B EXPERT10 months agoThis is now fixed.Share"


Question: Autoscaling Web Servers with Fargate

"ECS Task├Apache Container└Gogs ContainerWe are considering autoscaling with the above Fargate configuration.In terms of autoscaling・CPU utilization・Memory usage・Client concurrent connectionsWe think that these should be monitored, but is there anything else we should consider?Also, is there a good way to monitor the number of concurrent client connections?FollowComment"

Answer: "2Accepted AnswerHow and when to scale in/out really depends on your workload. Is your application primarily CPU bound? Auto scale on CPU utilization. Is it memory bound? Auto scale on memory utilization. Do you have a predictable time-based usage profile, such as busy times during work days and quiet times during evenings/weekends? Auto scale using scheduled scaling.Based on my experience, concurrent client connections may not be the best metric to use for auto scaling. You probably care most about user experience and cost - you want to provide the best possible user experience (e.g. fastest performance) for the lowest cost. Concurrent connections is probably correlated to CPU, memory, and response time: the more connections, the higher the CPU and memory usage, and the lower the response time. Instead, measure and scale based on response time.ALBs publish a TargetResponseTime metric, but this isn't actually very useful. As noted in the ALB docs, this metric measures "the total time elapsed (in seconds, with millisecond precision) from the time the load balancer sent the request to a target until the target started to send the response headers. That may be what you want, but more likely you want the total processing time - the time elapsed between receiving a request and sending a complete response. The ALB cannot help with that, so instead you can publish a custom metric and scale based on that.For auto scaling on CPU and memory utilization, use target tracking scaling. For auto scaling on response time, use step scaling with the custom CloudWatch metric published by your application.Hope this info helps.CommentShareEXPERTbwhaleyanswered 8 months agoSUPPORT ENGINEERMonica_Lluisreviewed 8 months ago"


Question: Emails could not be delivered as Amazon IP is under block list

"Hi there,Unfortunately I received email notifications that my newsletters could not be sent due to the error below:-An error occurred while trying to deliver the mail to the following recipients:Reporting-MTA: dns; b232-11.smtp-out.ap-southeast-2.amazonses.comAction: failedFinal-Recipient: rfc822;Diagnostic-Code: smtp; 550 5.7.1 Unfortunately, messages from [69.169.232.11] weren't sent. Please contact your Internet service provider since part of their network is on our block list (S3150). You can also refer your provider to http://mail.live.com/mail/troubleshooting.aspx#errors . [HE1EUR04FT027.eop-eur04.prod.protection.outlook.com ]Status: 5.7.1It looks like the IP address listed (69.169.232.11) above belongs to Amazon.Is there anything you can do on your end to fix this issue?Thank you kindly.FollowComment"

Answer: "0Please check this troubleshooting guide from AWS Premium Support to see if any of the conditions apply to you - https://aws.amazon.com/premiumsupport/knowledge-center/ses-resolve-emails-not-delivered/CommentShareEXPERTIndranil Banerjee AWSanswered 7 months ago0Hi there,Thanks for your reply. I've looked at the KB article and I don't think it applies to me.It seems like only emails sent to "hotmail.com" or "outlook.com" are undelivered. There doesn't seem to be an issue sending to other domains.CommentSharejwjanswered 7 months ago"


Question: Unable to receive messages in the Raspberry Pi connection example

"I followed the steps mentioned in "Getting started with AWS IoT Core" documents to test my Raspberry Pi 4B device connectivity. I have created certificates, policy that allows connect, subscribe and publish actions for any (*) resource and created a thing entry for my device.I have tried both Python and Node samples. In both the cases the client is able to publish messages, but no messages are getting consumed i.e. received. From Amazon Console I can test the same by subscribing to the same topic from console. It is successfully receiving messages. I am facing problem in sample code.There are no errors. Only publish messages get printed and the program waits forever to receive the messages.Any pointers?FollowComment"

Answer: "1The issue was with policy. As I mentioned in the query, I added Publish, Connect and Subscribe actions but not Receive. As a result messages were not getting delivered.CommentShare2020ciot014answered 2 years ago"