> For the complete documentation index, see [llms.txt](https://oklencodes.gitbook.io/untitled/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://oklencodes.gitbook.io/untitled/cloud/aws/aws-cdk-deploy-and-using-amazon-sqs-que-from-repo/sending-and-receiving-information-from-the-stack.md).

# Sending and Receiving information from the stack

<figure><img src="https://2022164620-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FtzurpgroDJSMn9AFVmQP%2Fuploads%2Fr12C4Q5LfUWw35rgLUYo%2Fimage.png?alt=media&amp;token=b8296433-df52-4441-b7fa-283582dd3e1b" alt=""><figcaption></figcaption></figure>

grep the specific QueueStack-QueueQueue good habit to be specific incase there are other ques within the sqs and not posting messages to the wrong place.

<figure><img src="https://2022164620-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FtzurpgroDJSMn9AFVmQP%2Fuploads%2FRmtChdF3DTnGsAbZ4yil%2Fimage.png?alt=media&amp;token=f4e20172-43fe-4d54-8289-ae230d852cf4" alt=""><figcaption></figcaption></figure>

Have various ways of sending the sqs information, in this case python will be used instead of the shell scripts

<figure><img src="https://2022164620-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FtzurpgroDJSMn9AFVmQP%2Fuploads%2FqNSaxRlBInp2unFPxgXz%2Fimage.png?alt=media&amp;token=5c051bc8-8225-4ae0-9ae5-d267aae03e68" alt=""><figcaption></figcaption></figure>

cat sqs-send.py

it basically takes a set of data and assigns some of that as message attributes

<figure><img src="https://2022164620-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FtzurpgroDJSMn9AFVmQP%2Fuploads%2FKHyH2scy2fPV85KNmx6R%2Fimage.png?alt=media&amp;token=3b8a6f2b-0658-4825-a2b7-897dedbf1563" alt=""><figcaption></figcaption></figure>

Here are the results of the send and recieve requests action.
